21.01.2014, 03:10
I'm having a problem with some math, basically the below outputs '0.0000000' even though its not. (****** and my calculator confirm)
new speed = GetVSpeed(playerid);
new Float:newdist = speed / 3600;
Now, lets say that speed is 60. The output, according to ****** and my calculator should be '0.01666666666', however the output is actually given as 0.000000 when printed in string.
Any ideas whats going on with this? I assume its probably something very simple i'm overlooking.
new speed = GetVSpeed(playerid);
new Float:newdist = speed / 3600;
Now, lets say that speed is 60. The output, according to ****** and my calculator should be '0.01666666666', however the output is actually given as 0.000000 when printed in string.
Any ideas whats going on with this? I assume its probably something very simple i'm overlooking.