Check if Float equal "Number"
#4

No, you should compare with a decimal part, like this:

pawn Код:
if(floatfract(3.50) == 0.50)
        printf("floatfract rules!");
Reply


Messages In This Thread
Check if Float equal "Number" - by xVIP3Rx - 06.12.2013, 19:24
Re: Check if Float equal "Number" - by arakuta - 06.12.2013, 19:29
Re: Check if Float equal "Number" - by xVIP3Rx - 06.12.2013, 19:59
Re: Check if Float equal "Number" - by arakuta - 06.12.2013, 20:07
Re: Check if Float equal "Number" - by xVIP3Rx - 11.12.2013, 21:18
Re: Check if Float equal "Number" - by Emmet_ - 11.12.2013, 21:24
Re: Check if Float equal "Number" - by xVIP3Rx - 11.12.2013, 22:09
AW: Check if Float equal "Number" - by Nero_3D - 11.12.2013, 22:35
Re: Check if Float equal "Number" - by Emmet_ - 11.12.2013, 22:36
Re: Check if Float equal "Number" - by xVIP3Rx - 11.12.2013, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)