Skip to content

bmel:toNumber

Category: Type Conversion · Returns: bmel:number

bmel:toNumber(expr: bmel:any)

Description

Converts the expression to a numeric value. For strings, parses the text representation. For booleans, true=1 and false=0. Numbers are returned as-is.

Arguments

Parameter Type Required Description
expr bmel:any The value to convert to a number.

Example

bmel:toNumber({order:Response Payload}.$.amount_string)

Back to BMEL Reference