web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Increment by 3 decimal...
Power Automate
Suggested Answer

Increment by 3 decimal places

(0) ShareShare
ReportReport
Posted on by 217 Season of Giving Solutions 2025
I have a float variable that I am incrementing for each object in a flow, it starts at 1.001 and then increments by 0.001 using the "Increment Variable" function.
It works fine till it gets to 1.004, I increment it again by 0.001 but the next number returned is 1.00499999999999999 and so on, how can I get it to increment by 3 places exactly?  thanks
Categories:
I have the same question (0)
  • Ish S Profile Picture
    96 on at
    Hello senna,
     
    I was able to increment a float variable and I got the expected results.
     
    Would you be able to share a piece of your workflow?
  • senna Profile Picture
    217 Season of Giving Solutions 2025 on at
    thanks @Ish S, I don't think .004 is the issue, its just if it gets incremented many times in a loop, by the 4th or 5th loop of incrementing it by 0.001 it actually increments it by 0.00099999999999999
  • Suggested answer
    David_MA Profile Picture
    14,605 Super User 2026 Season 1 on at
    Float values in Power Automate use binary floating-point precision (IEEE 754 - Wikipedia) rather than decimal-point precision. You can use an expression to convert your variable to show three decimal places: formatNumber(variables('Value'), '0.000'
     
    Since you don't show your flow, I created a basic example:
    Result:

    You can use the output of the Compose action for whatever you are doing.
     
  • VictorIvanidze Profile Picture
    13,081 on at
    Use integers to increment/decerement.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard