Ajuda del LibreOffice 25.2
Torna un número enter entre -1 i 1 que indica si el número que es passa a la funció és positiu, negatiu o zero.
Sgn (Number)
Integer
Nombre: Expressió numèrica que determina el valor que torna la funció.
| Nombre | Valor de retorn | 
| negatiu | Sgn torna -1. | 
| 0 | Sgn torna 0. | 
| positiu | Sgn torna 1. | 
Sub ExampleSgn
    Print sgn(-10) ' Torna -1
    Print sgn(0) ' Torna 0
    Print sgn(10) ' Torna 1
End Sub