Something conspicuous by its absence from the Math library is the sign function. I would like to see Math.Sgn among the maths functions. It would be used as, for example,

y = Math.Sgn(x).

In the meantime I'm using:-

If x = 0 then

Sgn = 0

Else

Sgn = x / Math.Abs(x)

EndIf

As I use it a lot, it means a lot of coding, changing the x every time to the name of the variable I'm seeking the sign of.