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 Apps / Round Number to neares...
Power Apps
Answered

Round Number to nearest half

(0) ShareShare
ReportReport
Posted on by 1,088

How would one do this?  The round functions don't seem to be able to do increments?

 

Thanks,

Terry

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @Mattw112IG ,

    I have used a text input here, but it could be any value

    Round2Half.gif

    With(
     {
     vMod: 
     Mod(
     Round(
     Value(YourTextInput.Text),
     1
     ),
     1
     ),
     vWhole: 
     RoundDown(
     Value(YourTextInput.Text),
     0
     )
     },
     vWhole + 
     If(
     vMod <= 0.25,
     0,
     vMod > 0.25 && vMod < 0.75,
     0.5,
     1
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • JLo5o769 Profile Picture
    6 on at

    you can try this: 

    RoundUp(Value(TextInput1.Text)*2,0)/2

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 Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard