Subject | Re: [firebird-support] Floating point value issue |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2005-04-08T05:36:44Z |
On 7 Apr 2005 at 23:23, Craig wrote:
declared it as 'FLOAT' which has only 7 digits precision instead of
'DOUBLE'.
Replace it with NUMERIC. If your example was typical, you can use
NUMERIC(15,1).
--
SY, Dimitry Sibiryakov.
>I inherited an SQL table which uses a floating point value as the ID,You mean MS SQL, don't you?
>and i converted this table into a Firebird Table, maintaining theI think, you made two mistakes: kept floating type for PK and
>floating point type for the ID, however I have noticed the floating
>point values are not the same when i view these values, for example -
declared it as 'FLOAT' which has only 7 digits precision instead of
'DOUBLE'.
>Are there issues with Floats in Firebird { using version 1.5.2 as anOnly common issue - float is unprecise and must not be used in PK.
>Embedded Server in this instance, but also a Classic Server }
Replace it with NUMERIC. If your example was typical, you can use
NUMERIC(15,1).
--
SY, Dimitry Sibiryakov.