Text input negative numbers

I have a text input where users can transfer an amount to each other. Problem is if the user puts in a negative number he can steal the balance back.

How can I stop allowing negative numbers to be typed into an input? Also am I able to round to only whole numbers and no decimals?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.