Hey,

if i run the following code:

Int16 count[6];
char counterlabel[40];
Int16 p, all,allcards;

count[1]=2000;
p=(100*count[1]);
StrPrintF (counterlabel,"Box 1 - %d cards (%d %%) - %d", 
count[1],p,count[1]);

i get a counterlabel = "Box 1 - 2000 cards (3392 %) - 2000"

Why the hell 3392??? I thought about 200000 ...


Thank you
Greets
Sebastian







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to