Hi there
Rather than using floats why dont you use an unsigned 32bit int and use
fixed point notation (ie just multiply everything up by 100) for your
internal calcualtions and just divide down when you want to display the
result. is $42,949,670.99 big enough to cover your orders ?. 8-) (the
dragonball processor will probably handle the maths a bit faster too)
FWIW- I also have a paypal account, 0.01% of your total orders should do the
job just fine 8-)
Jon...
>
> Subject: unsigned float?
> From: "JF" <[EMAIL PROTECTED]>
> Date: Wed, 18 Jul 2001 18:58:29 -0700
> X-Message-Number: 118
>
> Is there a way to get either an unsigned float or a double-length float?
> Either 4 unsigned bytes or 8 signed bytes (instead of 4)?
>
> My app calculates an order total dollar amount, and if it's too big, goes
> into negative.. So I either need to reserve more bits for positive
numbers,
> or find a way to use the existing ones better.
>
> For example, I only need accuracy to 2 decimal places. Is there a way to
> declare it so only 2 decimal places are recorded and the rest of the bits
> are used for the whole number portion?
>
> Thanks!
> Jason
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/