I have a Visualforce PDF page with decimal values in it and these need to be rounded to the nearest 1000.00. If I do
decimal x = Math.round(x) it just takes it to the nearest value on the left.
Eg I have
- 1,243,478.80 and need it rounded up to 1,243,000.00
- 1,243,578.80 and need it rounded up to 1,244,000.00
How do I achieve this?