Notifications
Announcements
How can I round Off my float number to 2 decimal places?For Example, Converting 6.666667 to 6.66 or 6.67
@Anonymous
You can use this:
Round(6.666667, 2); //returns 6.67 RoundUp(6.666667, 2); //returns 6.67 RoundDown(6.666667, 2); //returns 6.66
If you have any questions or feedback, please let me know. Have a great day! 😊-----------------------PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
Power Apps has functions for RoundUp, RoundDown, and just Round that will let you specify the number of decimal places you want in the floating point number. This article explains the syntax. Int, Round, RoundDown, RoundUp, and Trunc functions - Power Platform | Microsoft Learn
So, it is actually not a value. I've called a variable in the Text property called varCheckOutPercent.
Then you need to put the Text value inside a Value function and that in the Round()
Round(Value(varCheckOutPercent), 2)
@Anonymous you can use one of these:
Round(varCheckOutPercent, 2); //returns 6.67 RoundUp(varCheckOutPercent, 2); //returns 6.67 RoundDown(varCheckOutPercent, 2); //returns 6.66
It has converted the value from 6.666667 to 0.7
Hi @Anonymous
Looks like you want to show the percantage:
Round(Value(varCheckOutPercent)*100, 2);
If you have any questions or feedback, please let me know. Have a great day! 😊----------------------PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
Round(varCheckOutPercent, 2) is giving me 0.27 (Real Value = 26.666667) RoundUp(varCheckOutPercent, 2) is giving me 0.27 (Real Value = 26.666667) RoundDown(varCheckOutPercent, 2) is giving me 0.26 (Real Value = 26.666667)
Is there a way to also show the % with the value?
The varCheckOutPercent looks like it gets divided by 100.
My results:
Your results:
Check the variable varCheckOutPercent .
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268