Guida di LibreOffice 25.2
Restituisce un numero intero compreso tra -1 e 1 che indica se il numero passato alla funzione รจ positivo, negativo o zero.
Sgn (Numero)
Integer
Numero: espressione numerica che determina il valore restituito dalla funzione.
| Numero | Valore restituito | 
| negativo | Sgn restituisce -1. | 
| 0 | Sgn restituisce 0. | 
| positivo | Sgn restituisce 1. | 
Sub ExampleSgn
    Print sgn(-10) ' restituisce -1
    Print sgn(0) ' restituisce 0
    Print sgn(10) ' restituisce 1
End Sub