Sgn function

Category: Math

Summary

Sign of a number (-1,0,1).

Syntax

Returns a Variant (Integer) indicating the sign of a number.

Example

Remarks
The sign of the number argument determines the return value of the Sgn function.

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/sgn-function

Back to Functions