round

round

> Fonctions

Retourne l'arrondi de number. Vous pouvez trouver l'arrondi à l'entier inférieur avec floor, et l'arrondi à l'entier supérieur avec ceil.

Paramètres
Retour
Exemples

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

Voir aussi