This code rounds up only the subvalues bigger or equal to 5:
Math.round(2.5) = 3
Math.round(2.4) = 2
I would like to get the following:
Math.round(2.0000000001) = 3
Math.round(2.0) = 2
How do I round up any integer with non-zero residue?
This code rounds up only the subvalues bigger or equal to 5:
Math.round(2.5) = 3
Math.round(2.4) = 2
I would like to get the following:
Math.round(2.0000000001) = 3
Math.round(2.0) = 2
How do I round up any integer with non-zero residue?