Arcade.Num
Functions
fn clamp(x : Float, lo : Float, hi : Float) : Float needs () do min_float(max_float(x, lo), hi) end
a / b with IEEE results for b == 0: /. panics on zero natively, while Swift and JS give an infinity or NaN. Use it for any divisor that can reach zero.
fn max_float(x : Float, y : Float) : Float needs () do if y >= x do y else x end end