# Sgn Function

αααα‘ααβαααα½αβαααβαααααα -1 ααΉα 1 αααβαααα’α»αβααααΆααβααααα·αβααΎβαααα½αβαααβααααΌαβααΆαβα α»αβααβα’αα»αααα ααΆβαααα½αβαα·αααααΆα α’αα·αααααΆα α¬βααΌαααΒ α

## ααΆαααβααααααα α

``````
Sgn (Number)
``````

Integer

## αααΆαααΆαααααα α

αααα½αβ α ααααααβαααβαααβαααααβαααααβ αααβααααΌαβααΆαβαααα‘ααβαααβα’αα»ααααΒ α

 Number αααααβαααα‘αα α’αα·αααααΆα Sgn returns -1. 0 Sgn returns 0. αα·αααααΆα Sgn returns 1.

### Error codes:

5 ααΆαβα αβαααααβαα·αβααααΉαααααΌα

## α§ααΆα ααα α

``````
Sub ExampleSgn
Print sgn(-10) REM returns -1
Print sgn(0) REM returns 0
Print sgn(10)  REM returns 1
End Sub
``````