kOS-scripts/lib/util.ks

9 lines
125 B
Plaintext
Raw Normal View History

@LAZYGLOBAL OFF.
function round_towards_zero {
parameter n.
if n < 0 return ceiling(n).
return floor(n).
}