Page 1 of 1

Rounding to the nearest $100

Posted: Tue Dec 13, 2011 6:01 pm
by Crystole Roberts
Hello,

I am using an older version of the your product, 2010.2.745.0 to be exact (and, anxiously waiting for a drop of the newest release!), and am trying to round a number to the nearest $100. It seems that I am able to round to specific decimal places, but am unable to round to the left of the decimal. Can you please advise?

Thank you,

Crystole Roberts

Rounding to the nearest $100

Posted: Wed Dec 14, 2011 4:28 am
by Alex K.
Hello,

Please try to use the following expression:
{Math.Round(YourValue/100) * 100}

Thank you.

Rounding to the nearest $100

Posted: Wed Dec 14, 2011 10:31 am
by Crystole Roberts
Thank you! That did the trick!

Rounding to the nearest $100

Posted: Thu Dec 15, 2011 5:25 am
by Andrew
Hello,

Great!

Have a nice day.
Thank you.

Re: Rounding to the nearest $100

Posted: Tue Oct 30, 2012 11:27 am
by davidnamer
hi
i use this
but it gives error
" The call is ambiguous between the following methods or properties: 'System.Math.Round(double)' and 'System.Math.Round(decimal)' "

Re: Rounding to the nearest $100

Posted: Wed Oct 31, 2012 8:20 am
by HighAley
Hello.

You should cast type to Double or Decimal.

Thank you.