strfloat comparison issues
#1

Okay so I convert the string of the inputtext of a dialog to a float than try to compare it between 0.01 and 100.0 but, It doesn't seem to be working properly.


Код:
new Float:amount = floatstr(inputtext);
if(amount < 0.01 || amount > 100.0)
Any ideas?
Reply


Messages In This Thread
strfloat comparison issues - by MisterTickle - 08.01.2011, 03:24
Re: strfloat comparison issues - by admantis - 08.01.2011, 03:48
Re: strfloat comparison issues - by Joe Staff - 08.01.2011, 03:53
Re: strfloat comparison issues - by MisterTickle - 08.01.2011, 05:12
Re: strfloat comparison issues - by Joe Staff - 08.01.2011, 05:19

Forum Jump:


Users browsing this thread: 1 Guest(s)