Stimulsoft Reports Round() vs Math.Round issue
Posted: Mon Jun 13, 2022 7:43 am
Hi,
I have a decimal value of 1.01251
When i display this value in a Textbox - only three decimals, i get 1.013
Unfortunatly i need to build a sum for the whole column, and for sum calculation stimulsoft uses the orginial value of 1.01251
When I try to now use ROUND ROUND(value,3) i get 1.012 - so stimulsoft Rounds down.
I don't see an implementation for Midpoint Rounding including the decimals something like (Math.Round(value, 3, MidpointRounding.AwayFromZero))
Is it somehow possible to use same rounding function like the Textbox display is using?
Thanks
I have a decimal value of 1.01251
When i display this value in a Textbox - only three decimals, i get 1.013
Unfortunatly i need to build a sum for the whole column, and for sum calculation stimulsoft uses the orginial value of 1.01251
When I try to now use ROUND ROUND(value,3) i get 1.012 - so stimulsoft Rounds down.
I don't see an implementation for Midpoint Rounding including the decimals something like (Math.Round(value, 3, MidpointRounding.AwayFromZero))
Is it somehow possible to use same rounding function like the Textbox display is using?
Thanks