Float - Problem
#2

The code below basically creates a new float variable set at 0.0, then until the float equals 5.0, it will add 0.1 then print the value.

pawn Код:
new
    Float:distance = 0.0
;

while(distance < 5)
{
    distance += 0.1;
    printf("%01.02f", distance);
}
Reply


Messages In This Thread
Float - Problem - by Akcent_Voltaj - 23.03.2013, 22:12
Re: Float - Problem - by Scenario - 23.03.2013, 22:17
Re: Float - Problem - by Akcent_Voltaj - 23.03.2013, 22:27
Re: Float - Problem - by Akcent_Voltaj - 23.03.2013, 23:20

Forum Jump:


Users browsing this thread: 1 Guest(s)