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.

4

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

  • I agree, and this seems like a most reasonable technical solution. – Simon Lawrence Feb 7 '14 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.