Re: How to avoid: 9.50184e+06 - Mailing list pgsql-general

From Merlin Moncure
Subject Re: How to avoid: 9.50184e+06
Date
Msg-id b42b73150709280538n723444bbpe18572618cdb9f92@mail.gmail.com
Whole thread Raw
In response to How to avoid: 9.50184e+06  (Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>)
List pgsql-general
On 9/28/07, Stefan Schwarzer <stefan.schwarzer@grid.unep.ch> wrote:
> Hi there,
>
> how can I avoid results like this: 9.50184e+06
>
> Instead it should return the "real" value, as 950184.

The type 'real' in postgresql comes from the mathematical definition
of real, numbers that can be expressed as a fraction, or rational
numbers.  In a practical sense, it is an alias for the binary floating
point type iirc.

In your case, it looks like you should be using the integer or the numeric type.

merlin

pgsql-general by date:

Previous
From: Stefan Schwarzer
Date:
Subject: How to avoid: 9.50184e+06
Next
From: Martijn van Oosterhout
Date:
Subject: Re: How to avoid: 9.50184e+06