Arrondi un nombre à la précision demandée.

round d to g
dnombre
gdécimales
Codeprint (round 3.14 to 0) print (round 3.14 to 1) print (round 3.14 to 2) Execution3 3.1 3.14