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 to next whole...
Power Automate
Answered

Round up to next whole number

(0) ShareShare
ReportReport
Posted on by 77

I want to round up to the next whole number.  If the value is 0.12 it should round up to 1. irrespective of what value is there after the decimal...just want to round up to the next whole number

What can be done?

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Please use the following formula:

     

    If(Value(Left((Last(Split(TextInput2.Text,".")).Value),1)) < 5 And Mod(TextInput2.Text,1)>0,Round(Value(TextInput2.Text) + 1,0),Round(Value(TextInput2.Text),0))

     

    Where, TextInput2 is the input decimal value that needs to be rounded off.

  • Verified answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @pranavj619,

     

    As a workaround, you could check if a dot is available via an indexOf function. If so, you could split on the dot and use an add function to add 1 number and round up to the next whole number.

     

    Try an expression like below:

    if(equals(indexOf(string(outputs('Compose')), '.'), -1), outputs('Compose'), add(int(split(string(outputs('Compose')), '.')[0]), 1))

     

    roundnextwholenumber.png

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at
    int(
    	formatNumber(
    		add(
    			item(),
    			0.49999999999999
    		),
    		'#'
    	)
    )
  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @Chriddle,


    That is a great solution. I was thinking about the # specifier as well, used that before with rounding up.

     

    But I didn't think of adding the 0.49999999 part for this scenario. Nice suggestion 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard