14.05.2013, 16:56
the code
what TestString returns
what it should return
it should return 34 dollors not 23 as i made a money 2 variable to test why but it still does it
can anyone help?
pawn Code:
new Float:Money2 = 12.34,
Doll = floatround(Money, floatround_floor),
Cent = floatround(floatfract(Money2)*100);
//Remove Once Finished.
new TestString[150];
format(TestString, sizeof(TestString), "Starter: %f Doll: %i Cent: %i", Doll, Cent);
Quote:
Starter: 0.00000 Doll: 84 Cent: |
Quote:
Starter: 84.23000 Doll: 84 Cent:34 |
can anyone help?