0

I want to get the nearest ceiling for the decimal value.

For 1268.0 => I want to get 1300.
For 2537.0 => I want to get 2500.

It would be like Excel function.

I used value.round(roundingMode.UP) to get the nearest whole value. But still I can't achieve what I want.

Any input will be so helpful.

1 Answer 1

4

You could divide by 100, do the rounding and then multiply again by 100. Not really a salesforce issue.

1
  • I agree, and this seems like a most reasonable technical solution. Commented Feb 7, 2014 at 15:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .