Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BDBBA476446 for ; Mon, 16 Sep 2002 11:52:25 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 042B547642B for ; Mon, 16 Sep 2002 11:52:25 -0400 (EDT) Received: from [63.195.55.98] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1649734; Mon, 16 Sep 2002 08:52:27 -0700 From: "Josh Berkus" Subject: Re: Formatting zeroes To: Ludwig Lim , PostgreSQL Mailing List X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Mon, 16 Sep 2002 08:52:27 -0700 Message-ID: In-Reply-To: <20020916144149.39360.qmail@web80309.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/181 X-Sequence-Number: 9458 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