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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

UpRound float value

(0) ShareShare
ReportReport
Posted on by 139

Hello,

 

I want to round up a float value in a WF to the next higher number. 

I couldn“t find a solution/function for this, is this even possible?

 

I already found a possible solution, but this is only removing the values after the '.'

https://powerusers.microsoft.com/t5/AI-Builder/Round-a-Float/m-p/317574#M80  

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    @Belasor just use the Format number action:
    round-formatNumber.png

     Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Belasor Profile Picture
    139 on at

    thank you for the answer, unfortunately if the value is 21.1 itĀ“s down rounding. 

     

    By adding 0.5 and an condition I should be able to fix that problem right? 

    In this case I have to check if the decimal is equal to 0 if not add 0.5 and then using "Format number" to round it up.

    Unfortunately I couldnĀ“t find a way to check the decimal number 😕

     

    Or is there any easier way? I just need a function similar to Math.ceil in JS :).

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Belasor ,

     

    Please refer to screenshot below to create the flow:

    1.png

     

    if(and(greater(last(split(string(variables('test')),'.')),'0'),contains(string(variables('test')),'.')),add(variables('test'),1),variables('test'))

     

     

     

    Best regards,

    Alice   

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard