Integer / Float issue
#3

I'm sorry..
pawn Код:
Total_Cost_LV += EvaluateHouse(houseid);
            printf("houseid: %d - Total_Cost_LV: %0.2f - EvaluateHouse(houseid): %d", houseid, Total_Cost_LV, EvaluateHouse(houseid));
when I add 1000.

The number turns to this .. 1148846080.00

pawn Код:
[28/10/2012 12:49:35] houseid: 0 - Total_Cost_LV: 1148846080.00 - EvaluateHouse(houseid): 1000 // after 1000 is added
.. sorry the indentation got messed up from the site
Reply


Messages In This Thread
Integer / Float issue - by Kar - 28.10.2012, 16:32
Re: Integer / Float issue - by Kar - 29.10.2012, 23:42
Re: Integer / Float issue - by Kar - 30.10.2012, 02:14
Re: Integer / Float issue - by Simon - 30.10.2012, 04:00

Forum Jump:


Users browsing this thread: 1 Guest(s)