<viz>.sign

Return the sign of the value

 

<viz>.sign(
    val    

)

 

val

A numeric value


Remarks

This command will return the sign of a numeric value. The sign is either 1 or -1.

Return Value

1 if value is >= 0
-1 if value is < 0