Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0119C476681 for ; Mon, 16 Sep 2002 10:42:11 -0400 (EDT) Received: from web80309.mail.yahoo.com (web80309.mail.yahoo.com [66.218.79.25]) by postgresql.org (Postfix) with SMTP id 18F51476000 for ; Mon, 16 Sep 2002 10:41:45 -0400 (EDT) Message-ID: <20020916144149.39360.qmail@web80309.mail.yahoo.com> Received: from [203.87.150.116] by web80309.mail.yahoo.com via HTTP; Mon, 16 Sep 2002 07:41:49 PDT Date: Mon, 16 Sep 2002 07:41:49 -0700 (PDT) From: Ludwig Lim Subject: Formatting zeroes To: PostgreSQL Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/175 X-Sequence-Number: 9452 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