pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Toni Schlichting <toni@schlichting.net>
To: aspire420@hotpop.com
Cc: pgsql-admin@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: IEEE 754
Date: Wed, 31 Dec 2003 17:06:44 +0100
Message-ID: <3FF2F414.1070608@schlichting.net> (raw)
In-Reply-To: <3FF06449.7080208@sancharnet.in>
References: <3FF06449.7080208@sancharnet.in>

Hi Vishal,

usage of floating poing arithmetic is a taboo in financial calculations. 
This what the decimal type has been created for. Never ever use float.

Ciao, Toni

Sai Hertz And Control Systems wrote:

> Dear all ,
>
> I would like to share my concerns about the IEEE 754 specification and 
> floating point handling by PostgreSQL .
>
> Also I would like to learn how professional users of  PostgreSQL  work 
> with rounding of  monetary terms .
>
> If you would like to know whats IEEE 754 read this
> http://docs.sun.com/source/806-3568/ncg_goldberg.html
>
>
> Regards,
> Vishal Kashyap.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>





view thread (13+ messages)  latest in thread

Message-ID: <3FF2F414.1070608@schlichting.net>
Permalink:  ../3FF2F414.1070608@schlichting.net/
Also on:    postgresql.org/message-id/3FF2F414.1070608@schlichting.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: toni@schlichting.net, aspire420@hotpop.com, pgsql-hackers@postgresql.org
  Subject: Re: IEEE 754
  In-Reply-To: <3FF2F414.1070608@schlichting.net>
  References: <3FF06449.7080208@sancharnet.in> <3FF2F414.1070608@schlichting.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox