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 / How to round off for t...
Power Automate
Answered

How to round off for this in power automate?

(0) ShareShare
ReportReport
Posted on by 403

Hi,
In power automate, I have used Power APPS v2 action and there is a value called 'Temperature.'

Jupyter123_0-1681208506381.png

 


But whenever the user enters the temperature value, it should do this Temperature1 = round(Temperature, -2) Temperature1 is a variable which will save the temperature value of the user by rounding them like for example, if temperature is 85, it will be 100. and save the result in temperature 1

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Jupyter123 

     

    Can you share more examples for the data on which you need to perform the operation and how the result should be? there is no Round function in power automate available directly. There is a format number action but if you can share more examples, I can help you with the right approach. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Jupyter123 Profile Picture
    403 on at

    Hi @yashag2255 . Sure.
    The user will provide Temperature Input from power apps like for example 85
    But whenever the user enters the temperature value, it should do this Temperature1 = round(Temperature, -2) Temperature1 is a variable which will save the temperature value of the user by rounding them like for example, if temperature is 85, it will be 100. and save the result in temperature 1 variable.

    Another example would be, if user gives 210 as temperature it will be round off to 200, closest one.
    Another example, if user gives 390 as temperature then it will be round off to 400

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Jupyter123 

     

    You can use this expression: 

     

    if(greater(mod(temperature,100),50),add(temperature,sub(100,mod(temperature,100))),sub(temperature,mod(temperature,100)))
     
    You need to replace the temperature value here with the dynamic selector option for the temperature data that you are getting. Place this in a compose action as an expression and it should work. 
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard