Formatting zeroes - Mailing list pgsql-sql

From Ludwig Lim
Subject Formatting zeroes
Date
Msg-id 20020916144149.39360.qmail@web80309.mail.yahoo.com
Whole thread Raw
Responses Re: Formatting zeroes  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Hi:
 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.   However my problem is when I encounter a row has a
zero for one its column. It displays "0.", I tried
using with other formatting options but it does not
display zero the way I like ( "0" or "0.0").
 Is there a format specifier in the to_char function
that it will display 0 as "0" or "0.0"?

thanks,

ludwig.


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com


pgsql-sql by date:

Previous
From: "Michael Paesold"
Date:
Subject: Re: cross tab (pivtor table) sql
Next
From: "Ries van Twisk"
Date:
Subject: Dublicates pairs in a table.