Page 1 of 1

Stimulsoft Reports Round() vs Math.Round issue

Posted: Mon Jun 13, 2022 7:43 am
by rth001
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

Re: Stimulsoft Reports Round() vs Math.Round issue

Posted: Tue Jun 14, 2022 10:10 pm
by Lech Kulikowski
Hello,

Please clarify which product and version are you use?

Thank you.