Rounding issues
Posted: 01.07.2009, 15:26
Hi all,
I´m having rounding issues with Zeos and Firebird.
When i set a parameter to 3.26, it stores 3.2599 in the database.
I´m using "PreparedStatement.SetValue(n, DecodeVariant(Value))".
Does someone have these kind of issues? Is it related to Firebird or to Zeos?
I noticed that all Zeos methods used to assign numeric parameter values works with floating point types, including SetBigDecimal, which was supposed to use a decimal type (probably a TBCD in Delphi), so it seems we can have a design problem here.
Is there someone aware of a workaround for my case?
Regards,
Fabiano
I´m having rounding issues with Zeos and Firebird.
When i set a parameter to 3.26, it stores 3.2599 in the database.
I´m using "PreparedStatement.SetValue(n, DecodeVariant(Value))".
Does someone have these kind of issues? Is it related to Firebird or to Zeos?
I noticed that all Zeos methods used to assign numeric parameter values works with floating point types, including SetBigDecimal, which was supposed to use a decimal type (probably a TBCD in Delphi), so it seems we can have a design problem here.
Is there someone aware of a workaround for my case?
Regards,
Fabiano