INT(num)
- num – Il numero da cui si desidera ottenere il solo numero intero
Utilizzare la funzione INT quando volete solo la parte intera di un numero decimale, ed è ok anche per arrotondare per difetto all’intero un numero. Ad esempio, INT(3,99) restituisce il numero 3.
È importante notare che INT arrotonda in realtà i numeri al valore intero successivo più basso.
Così, mentre INT(10,8) = 10, INT(-10,8) = -11.
Utilizzate la funzione TRONCA se volete esattamente la parte intera sia dei numeri positivi che dei numeri negativi.
- Posts not found
- Posts not found
- Posts not found