Skip to content

bmel:round

Category: Math · Returns: bmel:number

bmel:round(expr: bmel:number, decimals: bmel:integer)

Description

Rounds a number to a specified number of decimal places.

Arguments

Parameter Type Required Description
expr bmel:number The numeric value to round.
decimals bmel:integer Number of decimal places to round to (0 for integer rounding).

Example

bmel:round({order:Response Payload}.$.subtotal, 2)

Back to BMEL Reference