Sign - script and chart function

Sign() returns 1, 0 or -1 depending on whether x is a positive number, 0, or a negative number.



Return data type: numeric


If no numeric value is found, NULL is returned.

Examples and results:  

Examples Results

Sign( 66 )

Returns 1

Sign( 0 )

Returns 0

Sign( - 234 )

Returns -1

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?