>From "Targeting Palm OS" :

68K Floating Point Formats
The 68K back-end compiler lets you choose the number of bytes allocated for
a double using the 8-Byte Doubles option in the 68K Processor settings
panel. For Palm OS platform development, enable the 8-byte Doubles option.

For this type Option setting             Size is and its range is
float               n/a                              32 bits 1.17549e-38 to
3.40282e+38
short double  n/a                              64 bits 2.22507e-308 to
1.79769e+308
double            8-Byte Doubles is on 64 bits 2.22507e-308 to 1.79769e+308
long double    n/a                              80 bits 3.362103e-4932 to
1.18973e+4932


spike
----- Original Message -----
From: "JF" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 7:06 PM
Subject: Re: unsigned float?


> Oh and I tried it as a double, which I know is 8 bytes, but it STILL
> basically turns negative after 32768 ( 8 ^ 5)... Any ideas??
>
> Thanks,
> Jason
>
>
> JF <[EMAIL PROTECTED]> wrote in message news:57098@palm-dev-forum...
> >
> > 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/
>

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

Reply via email to