I'm trying to calculate how many milk of magnesium's I need to use, so I use the calculation
int numMilk = ceil((fullness_limit() - my_fullness()) / 15);
In my testing, I ended up with 1 fullness, for a calculation of:
ceil(14/15)
This returns back 0
As a float - this is 0.933 repeating, so shouldn't this return back 1?
I tested this in the 11511 build of mafia.
Thanks
int numMilk = ceil((fullness_limit() - my_fullness()) / 15);
In my testing, I ended up with 1 fullness, for a calculation of:
ceil(14/15)
This returns back 0
As a float - this is 0.933 repeating, so shouldn't this return back 1?
I tested this in the 11511 build of mafia.
Thanks