Once you fix the Int16 issue, I think (I am pretty sure) you will still need
to change your %d formatter to %ld to get the complete 32 bit value to
format correctly.  I ran in to this problem when using the %x formatter
without the 'l' modifier.

Brad

"Sebastian from Berlin/Germany" <[EMAIL PROTECTED]> wrote in message
news:97979@palm-dev-forum...
>
>
> 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