Subject | invalid floating point nightmare |
---|---|
Author | murmurrer@yahoo.com |
Post date | 2001-06-06T20:27:21Z |
I use IBO 3.6.
I have a table with a field of PRICE NUMERIC(13,2)
As a test I have created an app with only:
- TIB_connection
- TwwIBOquery (requestlive := true)
When I put in code:
wwIBOquery1.edit;
wwIBOqueyy1.fieldbyname('price').asfloat := 12345678912.12;
--> ERROR: invalid floating point operation
when i do:
wwIBOqueyy1.fieldbyname('price').asfloat := 123456789.12;
there is no such error
what's wrong with this code?
I have a table with a field of PRICE NUMERIC(13,2)
As a test I have created an app with only:
- TIB_connection
- TwwIBOquery (requestlive := true)
When I put in code:
wwIBOquery1.edit;
wwIBOqueyy1.fieldbyname('price').asfloat := 12345678912.12;
--> ERROR: invalid floating point operation
when i do:
wwIBOqueyy1.fieldbyname('price').asfloat := 123456789.12;
there is no such error
what's wrong with this code?