round

round

> Funzioni

Restituisce l'arrotondamento di number. Puoi trovare l'arrotondamento per difetto con floor e l'arrotondamento per eccesso con ceil.

Impostazioni
Feedback
Esempi

round(1) // 1 round(1.8) // 2 round(2.3) // 2 round(3.5) // 4 round(-12.79) // -13

Vedi pure