Power Automate (WDL) function
decimal — Power Automate (WDL) function reference
Exact decimal value.
Syntax
wdl
decimal(value)
Examples
wdl
decimal('19.99')→ A decimal
wdl
mul(decimal(item()?['UnitPrice']), decimal(item()?['Quantity']))
→ An exact decimal line total
decimal() compares by value, not by the original string representation.
wdl
equals(decimal('10.00'), decimal('10.0'))→ true
Common mistakes & gotchas
- Prefer decimal over float for money to avoid rounding drift.
- decimal() supports up to 28-29 significant digits (it maps to .NET's decimal type), making it the right choice for currency math over float().
- Mixing a decimal() value with a plain float literal in the same arithmetic call can silently fall back to floating-point behavior rather than staying exact — keep both operands decimal().
Related Workflow Definition Language functions
From Type conversion