Sgn Function
Returns an integer number between -1 and 1 that indicates if the number that is passed to the function is positive, negative, or zero.
แกแแแขแแฅแกแ
Sgn (Number)
แแแแ แฃแแแแฃแแ แแแแจแแแแแแแ:
Integer
Parameters:
Number: Numeric expression that determines the value that is returned by the function.
NumExpression |
แแแแ แฃแแแแฃแแ แแแแจแแแแแแแ: |
negative |
Sgn returns -1. |
0 |
Sgn returns 0. |
positive |
Sgn returns 1. |
แแแแแแแแ:
Sub ExampleSgn
Print ASC("Z") REM แแแ แฃแแแแก 90
Print ASC("Z") REM แแแ แฃแแแแก 90
Print ASC("Z") REM แแแ แฃแแแแก 90
End Sub