Re: Endian math?

2002-11-25 Thread Ralph Krausse
OK then another question. Can you marshall a negative number? I.E, we have our own 'HotSync' application. The Windows side application fill some structs with data, flips the data and streams them using TCP/IP. When the palm gets it, will a -100 be a -100 in the struct? Honestly, It will take me

Re: Endian math?

2002-11-25 Thread Henk Jonas
IMHO, yes it would be still -100. Henk Ralph Krausse wrote: OK then another question. Can you marshall a negative number? I.E, we have our own 'HotSync' application. The Windows side application fill some structs with data, flips the data and streams them using TCP/IP. When the palm gets it,

Re: Endian math?

2002-11-25 Thread Alan Ingleby
I think your question relates to whether there is a difference in the internal representation of a negative number on different platforms. The answer in this case is no. As long as you flip the byte order, you'll be fine. Alan Henk Jonas [EMAIL PROTECTED] wrote in message

Endian math?

2002-11-23 Thread Ralph Krausse
Can one flip a negative number from Windows to Palm? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Endian math?

2002-11-23 Thread John Leung
It doesn't really matter whether the number is +ve or -ve or floating points numbers or integer numbers. If you're converting numbers stored in big endian format (pre Palm OS5 devices) to little endian format, you flip the bytes. One question though. For the new OS 5 devices that uses ARM

Re: Endian math?

2002-11-23 Thread Aaron Ardiri
It doesn't really matter whether the number is +ve or -ve or floating points numbers or integer numbers. If you're converting numbers stored in big endian format (pre Palm OS5 devices) to little endian format, you flip the bytes. little endian or big endian - numbers are still stored