Re: Formatting zeroes

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>, PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Formatting zeroes
Date: 2002-09-16 15:52:27
Message-ID: web-1649734@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ludwig,

> I'm trying to use SQL to generate a formatted
> report. The "to_char(numeric,'FM9,999,999,999.99')"
> function works when I use it format numbers with
> decimal points and appropriate commas.
> Is there a format specifier in the to_char function
> that it will display 0 as "0" or "0.0"?

"to_char(numeric,'FM9,999,999,999.09')"

-Josh Berkus

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-09-16 15:55:53 Re: POSIX-style regular expressions
Previous Message Ross J. Reedstrom 2002-09-16 15:09:48 Re: How can unique columns being case-insensitive be accomplished?