encoding a NSDecimalNumber as IEEE-754 on an intel mac
encoding a NSDecimalNumber as IEEE-754 on an intel mac
- Subject: encoding a NSDecimalNumber as IEEE-754 on an intel mac
- From: Tore Halset <email@hidden>
- Date: Mon, 09 Oct 2006 02:03:55 +0200
Hello.
I am trying to encode a NSDecimalNumber with objCType 'd' as IEEE-754
on a intel mac. It is working on a powerpc mac, but not on an intel
mac. This is done as part of the HessianObjC framework to communicate
between a cocoa client and a java server.
double aDouble = [.... doubleValue];
aDouble = EndianS64_NtoB(aDouble);
[callData appendBytes:&aDouble length:sizeof(aDouble)];
Perhaps double on intel macs are not encoded as IEEE-754 doubles? How
can this be "fixed"? (I have googled a lot for this....)
- 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