Ah, this may be a moot point since I'm new to Palm programming, but doubles
are SUPPOSED to be 8bytes. That's the whole point: they're 64-bit IEEE
floating point values. The C data type float is 4bytes (32-bit IEEE
floating point).
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
M. Hartman
Sent: Monday, May 01, 2000 8:19 PM
To: Palm Developer Forum
Subject: Re: Doubles are 8 bytes?
Warning: if you set the size of your ints to anything other
than the default, you may create incompatibilities with the
PalmOS API -- it is expecting them at the default size.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Jason Simpkins wrote in message <10173@palm-dev-forum>...
>
>I did set the compiler to "not" use 8 byte doubles and 4 byte ints,
however,
>it still is creating 8 byte doubles (but the ints are correct at 2 bytes).
>I check this via a call to sizeof(double), and sure enough its 8 bytes no
>matter what I do. I am running CW R5 without and updates. Is there a bug
>in this version?
>
>Jason
>----- Original Message -----
>From: "Eugene Chin" <[EMAIL PROTECTED]>
>Newsgroups: palm-dev-forum
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Sent: Monday, May 01, 2000 11:08 AM
>Subject: Re: Doubles are 8 bytes?
>
>
>> > Can somebody tell me how to keep CW from always creating doubles as
>> 8 bytes?
>>
>> This is a compiler setting. Just go into the settings for your
>> project and it will allow you to toggle the sizes of ints and doubles.
>>
>>
>>
>> --
>> For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palm.com/devzone/mailinglists.html
>>
>>
>
>
>
>
--
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/