Stimulsoft Reports Round() vs Math.Round issue

Stimulsoft Reports.NET discussion
Post Reply
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

Stimulsoft Reports Round() vs Math.Round issue

Post 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
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

Please clarify which product and version are you use?

Thank you.
Attachments
Screenshot 2022-06-15 000934.png
Screenshot 2022-06-15 000934.png (43.79 KiB) Viewed 586 times
Post Reply