Rounding to the nearest Million

Stimulsoft Ultimate discussion
Post Reply
laducd
Posts: 115
Joined: Thu Oct 23, 2014 2:15 pm

Rounding to the nearest Million

Post by laducd »

Hi,

I am trying to to round to the nearest millionth and I can't seem to get it to work. I am trying {Round(Myfield, 4)} but it is rounding my decimal places 4 numbers. For instance, the value in my column is 8,935,400.88 and this is returning 8,935,400.8891. I would like the formula to take 8,935,400.88 and convert it to 8. Please let me know if you need further detail. Thanks!

Best,

Dominick Laduca
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Rounding to the nearest Million

Post by Alex K. »

Hello,

Please try to use the following expression:
{Math.Floor(8935400.8891/1000000)}

Thank you.
laducd
Posts: 115
Joined: Thu Oct 23, 2014 2:15 pm

Re: Rounding to the nearest Million

Post by laducd »

Thanks, that worked.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Rounding to the nearest Million

Post by Andrew »

Hello,

Great! Thank you for letting us know about this.
Post Reply