Hi Sebastian,

isn't p a bit too small to hold your 200000?
16 bit -> 65364 (I did know the exact value in my ZX Spectrum times) if 
you treat it as unsigned.

Henk (from Berlin too)

Sebastian from Berlin/Germany wrote:

> 
> 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


-- 
-------------------------------------------------------------------------
[EMAIL PROTECTED]                                       www.metaviewsoft.de

<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg";></A>
-------------------------------------------------------------------------


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

Reply via email to