Rounding
Publicado: Mar Oct 06, 2009 3:06 am
Hi
Recently i'm experieced a rounding problem in Xailer:
I create a Temp table (MSSQL) with type [decimal] (15,2) and define a
Dataset to this table.
The folowing code:
::t_temp:addnew()
::t_temp:acu_ger_deb=vdb_gr // vdb_gr=30.38
msginfo(::t_temp:acu_ger_deb ) // returns 30.38
::t_temp:update() // add the record
msginfo(::t_temp:acu_ger_deb ) // returns 30.37 ???
The only way to solve this was to declare the temp table to type [decimal]
(15,3) , the doesn't make sense because the value has only 2 dec, but with
this, the value stored became 30.38
Is there any configuration in xailer that i'm missing ?
Regards
Pedro Faro
Recently i'm experieced a rounding problem in Xailer:
I create a Temp table (MSSQL) with type [decimal] (15,2) and define a
Dataset to this table.
The folowing code:
::t_temp:addnew()
::t_temp:acu_ger_deb=vdb_gr // vdb_gr=30.38
msginfo(::t_temp:acu_ger_deb ) // returns 30.38
::t_temp:update() // add the record
msginfo(::t_temp:acu_ger_deb ) // returns 30.37 ???
The only way to solve this was to declare the temp table to type [decimal]
(15,3) , the doesn't make sense because the value has only 2 dec, but with
this, the value stored became 30.38
Is there any configuration in xailer that i'm missing ?
Regards
Pedro Faro