Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Kirschjm wrote:
>
> It's urgent !!!
>
> Does anybody know what kind of problems you get, if you fetch
> DECIMAL(12.2) values into host-variables of the data type DOUBLE ?
> (INFORMIX 7.12)
> Can the results of of summations and multiplications be wrong ?
> Is there any impicit conversion ?
No the results cannot be wrong but you must watch out for overflows
since DECIMAL can handle 32 digits while double only handles 15 digits
of precision. Some DECIMAL values are not exactly representable in IEEE
floating point and you may lose precision.
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.