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 / Round up when Dividing...
Power Automate
Answered

Round up when Dividing numbers

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hello Teams, I'm using 'Div' function to divide a number by 30 and I want to round up the result. For example, 139/30 = 4.6666....The flow returns the result as 4 , but I want to get the Round Up result, which is 4.666 becomes 5 (whole integer). I tried "int(first(split(string(variables('ee')),'.')))" a solution from another post but it seems not work for me. How should I round up the result? Thanks
Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @Anonymous 


    could you try this:

    if(Mod(float(30),139) > .49,div(float(30),139)+1,div(float(30,139))

     

  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Hey there.  You could also use the Format Number action, put your dynamic value (or div expression) in the Number field, and then for the Format, select "Add a custom item", and in the pop-up, just enter '#' (without the quotes) and click ok.

    20200817e.PNG
    The output from that action should be a rounded, whole integer.

     

    Either way, keep us posted.  Good luck!

    -Ed

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks so much. This solution works for me.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard