Re: Displaying a float8 as a full-length number

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Grant Rutherford <grutherford(at)iders(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Displaying a float8 as a full-length number
Date: 2003-10-08 18:29:20
Message-ID: 20031008182920.GA31260@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 08, 2003 at 12:48:09 -0500,
Grant Rutherford <grutherford(at)iders(dot)ca> wrote:
>
> I need this to return 0.00001 instead. I know about the to_char
> function, but this seems to truncate the number after fourteen digits of
> precision:

How about casting it to numeric? It seemed to work reasonably for me,
but I only tried one case.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grant Rutherford 2003-10-08 18:34:25 Re: Displaying a float8 as a full-length number
Previous Message Neil Conway 2003-10-08 18:28:45 Re: PostgreSQL vs. MySQL