--- title: "round(bigdecimal a, b)" slug: "math-round-big-decimal" updated: 2025-11-13T06:54:53Z published: 2025-11-14T02:46:29Z canonical: "docs.lobstersoftware.com/math-round-big-decimal" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # round(bigdecimal a, b) Rundet den Wert **a** auf **b** Nachkommastellen. Diese Funktion ist für die Rundung kaufmännischer Werte empfohlen, da es anders als bei [round(a, b)](/v1/docs/math-round-to-digits) nicht zu Rundungsfehlern oder Darstellungen in Exponentialform kommen, weil intern der Datentyp BigDecimal verwendet wird. Ein nicht-numerischer Wert **a** wird als *0* interpretiert. Siehe Beispiele unten. ## Parameter | Parameter | Beschreibung | | --- | --- | | a | Numerischer Wert. | | b | (optional) Nachkommastellen. Default: *0* | ## Beispiele | Parameter a | Parameter b | Ergebnis | | --- | --- | --- | | 2.135 | 0 | 2 | | 2.135 | 1 | 2.1 | | 2.135 | 2 | 2.14 | | abc | 2 | 0.00 |