Re: [Algorithms] Network & byte order.
Brought to you by:
vexxed72
From: Pierre T. <p.t...@wa...> - 2000-08-18 14:00:10
|
On a related note..... I once had a very bad surprise with floats as well - this is not a problem limited to byte order. I was saving floating point values to a binary file on a PC, and using the said binary file on a DEC Alpha. I always got immediate violent crashes until I figured out the Alpha was not using IEEE floats, but a nasty hybrid format where the last 16 bits of the mantissa are actually the 16 most significant bits (due to historical compatibility reasons when they switched from 16bits to 32bits floats). In other words, this was not a byte order but a word order problem regarding floating point values :) Pierre |