Skip to content

bmel:ceil

Category: Math · Returns: bmel:integer

Signature
bmel:ceil(expr: bmel:number)

Description

Rounds a number up to the nearest integer.

Arguments

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

Examples

Whole minutes, rounded up
bmel:ceil({invokeAgent:Response Payload}.$.duration_ms / 60000)
Pages needed for the items
bmel:ceil(bmel:length({getOrder:Response Payload}.$.items) / 20)

← Back to BMEL Reference