QMRITools`
QMRITools`
SignNoZero
SignNoZero[val]
gives the sign of the val, where the sign of val > 0 is 1 and val < 0 is -1.
Examples
In[1]:=1

✖
https://wolfram.com/xid/0coiyk7y9ext9r1p53y4h4k4-ce38i
SignNoZero[val]
gives the sign of the val, where the sign of val > 0 is 1 and val < 0 is -1.
https://wolfram.com/xid/0coiyk7y9ext9r1p53y4h4k4-ce38i