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 / roundup power automate...
Power Automate
Answered

roundup power automate flow

(0) ShareShare
ReportReport
Posted on by 105

Greetings!
I have a user input (my variable) and I want all of the numbers to be (in output after calculations): if it's more than 0 but less than 0.5 it's 0.5

0.5 it's 0.5

and everything that bigger than 0.5 it's 1

 

for example,

20.0 = 20.0

20.1 = 20.5

20.2 = 20.5

20.5 = 20.5

20.6 = 21.0

Can someone help me, please 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @KK76875875,

     

    Try an expression like below:

    if(equals(indexOf(string(outputs('Compose_2')), '.'), -1), outputs('Compose_2'), if(lessOrEquals(split(string(outputs('Compose_2')), '.')[1], '5'), concat(split(string(outputs('Compose_2')), '.')[0],'.5'), concat(add(int(split(string(outputs('Compose_2')), '.')[0]),1),'.0')))
  • KK76875875 Profile Picture
    105 on at

    @Expiscornovus 
    Thank you so MUCH!
    Absolute life saver! 

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 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard