Skip to content

bmel:floor

Category: Math · Returns: bmel:integer

Signature
bmel:floor(expr: bmel:number)

Description

Rounds a number down to the nearest integer.

Arguments

Parameter Type Required Description
expr bmel:number The numeric value to round down.

Examples

Whole seconds of a duration
bmel:floor({invokeAgent:Response Payload}.$.duration_ms / 1000)
Age band of ten years
bmel:floor({createOrder:Request Payload}.$.customer.age / 10) * 10

← Back to BMEL Reference