How to round a number to two decimal places in Power Automate
Updated 2 November 2026
The expression:
formatNumber(float(variables('Value')), '0.00')Rounds to two decimals without a currency sign.
Where it goes
Anywhere a number is shown to people.
- In the Power Automate designer, click in the box that needs the value.
- Select the fx (Expression) button that appears next to the dynamic content list.
- Paste the expression and select Add. It should appear as a purple fx chip; if you can see it written out as text, it went in as plain text and won't run.
Example output
12.50 (illustrative; AutomateAlong doesn't run expressions)
The common mistake
string(variables('Value'))Shows every decimal the sum produced, such as 12.333333333333334. formatNumber with '0.00' rounds to two places.
Change it for your flow
Step names inside an expression must match your steps exactly, with underscores for spaces: Get_items, not Get items. To adapt it, open it in the Expressions checker, which points at any bracket, quote or name that's wrong and suggests the corrected version. To write a different one from plain English, describe what you need on the same page.
Related
- How to calculate a percentage in Power Automate
- How to format a number as pounds (£) in Power Automate
- How to add 20% VAT to an amount in Power Automate
AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.