From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: GetValue(), floats, and locales
Date: Wed, 7 May 2003 18:40:25 +0200
Message-ID: <20030507164025.GG48885@xs4all.nl> (raw)
In-Reply-To: <27744.1052324342@sss.pgh.pa.us>
References: <20030507133633.GD48885@xs4all.nl>
<27744.1052324342@sss.pgh.pa.us>
On Wed, May 07, 2003 at 12:19:02PM -0400, Tom Lane wrote:
>
> The server should always ship floats in "standard" representation.
> AFAIK the only way to use localized numeric representations is to
> write to_char() and to_number() calls (or use the money datatype).
> If you can show us a case where plain float display does the other,
> it's a bug.
I personally can't show you anything except a bug report from my user,
but I'll encourage him to post it here. He complains that libpqxx can't
read the fraction part of a floating-point number, which boils down to a
sscanf(GetValue(c,x,y), "%f", &f) always returning f as an integral
value.
Of course it's also possible that there's a bug in his display code or
that I'm missing something very, very important. Time to add some FP
test cases...
Jeroen
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-interfaces@postgresql.org
Cc: jtv@xs4all.nl, tgl@sss.pgh.pa.us
Subject: Re: GetValue(), floats, and locales
In-Reply-To: <20030507164025.GG48885@xs4all.nl>
* 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