Closed anton-trunov closed 2 months ago
used for integer division of two values, which truncates towards zero
/ does not truncate towards zero, it actually behaves like the floor function, i.e. it truncates towards zero for the positive results and away from zero for the negative results.
/
floor
/
does not truncate towards zero, it actually behaves like thefloor
function, i.e. it truncates towards zero for the positive results and away from zero for the negative results.