Re: encoding a NSDecimalNumber as IEEE-754 on an intel mac
Re: encoding a NSDecimalNumber as IEEE-754 on an intel mac
- Subject: Re: encoding a NSDecimalNumber as IEEE-754 on an intel mac
- From: Tore Halset <email@hidden>
- Date: Mon, 09 Oct 2006 19:59:18 +0200
On Oct 9, 2006, at 09:26, Hidetomo Katsura wrote:
do this instead:
double aDouble = [.... doubleValue];
CFSwappedFloat64 bigEndian = CFConvertFloat64HostToSwapped(aDouble);
[callData appendBytes:&bigEndian length:sizeof(bigEndian)];
// note: CFConvertFloat64HostToSwapped() is actually HostToBig().
Thanks. This seem to fix the endian problem, but it still does not
work on an intel mac. "12.25" on the intel client are decoded as
8.6469112845513523E17 on the server. Perhaps intel does not use
IEEE-754 to store their doubles?
- Tore.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden