I want to implement logic of rounding up to 3 decimal positions after rounding.
If the value of decimal place 1 – 3 is equal to 000 (regardless of the whole number), and the value of the 4th thru the 10th decimal place is greater than 0, the 3rd decimal place in the display will round up.
example:
1.1230000000 --> 1.123 1.1230010000 --> 1.123 1.1230600000 --> 1.124 1.0000010000 --> 1.001 1.0003000000 --> 1.003 5.0000001234 --> 5.001
looking forward
should do the trick for positive numbers. Test if you get the desired behavior for negative numbers (not given in your examples). If not, use Floor instead of Ceiling for negatives.