pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Formatting zeroes
Date: Mon, 16 Sep 2002 08:52:27 -0700
Message-ID: <web-1649734@davinci.ethosmedia.com> (raw)
In-Reply-To: <20020916144149.39360.qmail@web80309.mail.yahoo.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <web-1649734@davinci.ethosmedia.com>
Permalink:  ../web-1649734@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1649734@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, lud_nowhere_man@yahoo.com
  Subject: Re: Formatting zeroes
  In-Reply-To: <web-1649734@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox