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