Re: Exponential display of values

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: HK <harikrishnan(at)midascomm(dot)com>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Exponential display of values
Date: 2003-08-05 16:36:52
Message-ID: 200308050936.52276.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hari,

> I have a numeric field in the table which denotes the bit error rate.
> So i want to display the values in a normalised form i.e 0.xy e-z
> The problem is if the value is something like 0 or 0.01, it is displayed
> as the same. How do i display all values in the same format, so that visual
> comparison can be done easily in the front end i am providing.
> I have a gut feeling it can be done, but am unable to figure out how.
> Plz help me.

Please see the documentation on "to_char()"
Online Docs --> User Documentation --> Functions and Operators --> Formatting
Functions.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Joe Conway 2003-08-05 16:41:32 Re: Exponential display of values
Previous Message Tom Lane 2003-08-05 15:37:58 Re: pg_dump schema