☰
D
dejadoc
JOKA
/
joka.math
/
sign
🔍
☾
sign
fn
T sign(T)(T x)
Returns -1 if
x
is negative, 1 if positive, or 0 if zero.