WMLScript round() Funktion

Die round() Funktion rundet eine Zahl auf die nächstgelegene Ganzzahl ein.

Syntax

n = Float.round(x)
Bestandteile Beschreibung
n Die durch diese Funktion zurückgegebene Ganzzahl.
x Zahlen.

Beispiel

var a = Float.round(3.5);
var b = Float.round(3.4);

Ergebnis

a = 4
b = 3