Announcements
I am trying to display an error for if there is decimal value in a textbox. How do I do that?
Hi @Anonymous
You can use the Mod function, which will give you the remainder. Then see to it that if the remainder is greater than zero, that means it has a decimal.
Mod(YourNumberHere,1)>0
The code above will give you true if there is a decimal value and false if there is not.
More info:Power Apps – Split Decimal and Whole Number
Hi @Anonymous,
Just set the OnChange property of the TextInput as below:
If(Value(TextInput5.Text) <> RoundDown(Value(TextInput5.Text),0),Notify("No decimals!",Error))
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 248 Super User 2026 Season 2
WarrenBelz 192 Most Valuable Professional
Mohsin Ali 135