Power Automate (WDL) function
float — Power Automate (WDL) function reference
Parse to floating point.
Syntax
wdl
float(value)
Examples
wdl
float('123.45')→ 123.45
wdl
float(item()?['UnitPrice'])
→ 19.99
wdl
div(float(variables('total')), float(variables('count')))→ A real decimal average, not a truncated integer
Common mistakes & gotchas
- float() is double-precision binary floating point, so it can introduce rounding artifacts in money math — use decimal() instead when exact precision matters.
- An empty string or null input throws rather than converting to 0.
Related Workflow Definition Language functions
From Type conversion