Hello, since it's really handy and easy to implement, would it be possible to add the signum function?
One possible way to do it is:
if (x != 0) {
sgn = abs(x)/x;}
else {
sgn = 0;}
By making this an engine function you wouldn't "waste" much computational power while having a consistent and more readable command.