Skip to main content
Skip table of contents

round

Versionshinweise

12.1

Code

GROOVY
Double NumberUtils.round(Double value, int fractionDigits)

Beschreibung

Rundet den gegeben Zahlenwert.

Parameter

  • value - Ein Zahlenwert.
  • fractionDigits - Gibt die Anzahl der Rundungsstellen an.

Rückgabe

Der gerundete Zahlenwert.

Beispiele

GROOVY
NumberUtils.round(1.235, 2); // => 1.24
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.