Place the black box on the position of NICE_NUMBER
on the number line!
NICE_NUMBER
is equal to REDUCED_NUMBER
Because REDUCED_NUMBER
is positivenegative we go rightleft from 0
REDUCED_NUMBER
is fraction( parseInt( SIGN + ( NOMINATOR - ( DENOMINATOR * floor( abs( NUMBER) ) ) ) ) , DENOMINATOR, true, true )
away from floor( abs( NUMBER ) ) * NUMBER/abs( NUMBER )
Therefore REDUCED_NUMBER
is between floor( NUMBER ) and ceil( NUMBER )