I am looking for the easiest way to parse a float number.
X.Y where X=>0 and X <=5 and Y = 0 or Y = 5
e.g. the number should be one of the following 1 1.0 1.5 2 2.0 2.5 etc.
I tired using regular expressions, with no luck.
Thanks,
Karim
X.Y where X=>0 and X <=5 and Y = 0 or Y = 5
e.g. the number should be one of the following 1 1.0 1.5 2 2.0 2.5 etc.
I tired using regular expressions, with no luck.
Thanks,
Karim
Comment