Blocco Funzionale Round

Il blocco funzionale arrotonda un numero in virgola mobile.

Ingresso IN

L'ingresso attende un numero in virgola mobile.

Ingresso COMMA

Definisce il numero di cifre decimali. Il valore può anche essere negativo.

Uscita Q

Restituisce il valore arrotondato.

Esempi

IN COMMA Q
123.995 0 124
5.5 0 6
5.49 0 5
123.995 1 124
5.5 1 5.5
5.49 1 5.5
123.995 -1 120
5.5 -1 10
5.49 -1 10