makiju
14th September 2009, 09:28
Hi,
Is there any solutions to avoid problems with Float decimals?
I have a problem with one customized table which has datatype "float".
Example:
-37.253900000000002
When browsing...this will conflict with other row, which hasn't got that much decimals. But when I try to shorten this, it will not work. I can't make it shorter like -37.2540. It will always be with this kind of crazy value.
Bshell handles these as rounded and this brings problems because it's not rounded in DB. Can only be seen by using unload from dbaccess (or bdbpre).
Database is Informix on AIX (baan4c4)
bdbpre/post is not a solution. This problem happens even when inserting new row via GTM.
Is there any solutions to avoid problems with Float decimals?
I have a problem with one customized table which has datatype "float".
Example:
-37.253900000000002
When browsing...this will conflict with other row, which hasn't got that much decimals. But when I try to shorten this, it will not work. I can't make it shorter like -37.2540. It will always be with this kind of crazy value.
Bshell handles these as rounded and this brings problems because it's not rounded in DB. Can only be seen by using unload from dbaccess (or bdbpre).
Database is Informix on AIX (baan4c4)
bdbpre/post is not a solution. This problem happens even when inserting new row via GTM.