| From: | Dave Smith <dave(dot)smith(at)candata(dot)com> |
|---|---|
| To: | Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: to_char(0,'9999.99') -> ".00" |
| Date: | 2005-01-10 23:42:14 |
| Message-ID: | 1105400534.3772.2.camel@davehome |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
to_char(0,'9990.00')
?
On Mon, 2005-01-10 at 22:48 +0000, Phil Endecott wrote:
> Dear All,
>
> I was a bit surprised to find that
>
> to_char(0,'9999.99')
>
> returns .00 rather than 0.00.
>
> Is this a bug or a feature? How do I get what I want?
>
> (This is with 7.4.2. Appologies if it is a known problem. The search
> form in the list archives seems to split words on _, so looking for
> to_char finds lots of pages that just say 'char'.)
>
> Regards,
>
> Phil Endecott.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
--
Dave Smith <dave(dot)smith(at)candata(dot)com>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jamie Deppeler | 2005-01-10 23:42:25 | Re: PostgreSQL 8 on windows very slow |
| Previous Message | Guy Rouillier | 2005-01-10 23:33:51 | Simulating WAL on separate disks |