Math.ceil10(55, 2)
returns 100
where 2
expresses an exponent for 10^2
. Besides of logarithmic adjustment we can use modulo based adjustment. It is almost the same as above but uses an arbitrary number for adjustment.
Math.ceil10(55, 2)
returns 100
where 2
expresses an exponent for 10^2
.