I have a input box that can only take values between 0 to 100 (float is allowed). Is there any function that can convert the string value in input box to decimal so that I can compare it?
I have tried parseFloat but if the string="10Hi", parseFloat will still return 10.