• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
encoding a NSDecimalNumber as IEEE-754 on an intel mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: encoding a NSDecimalNumber as IEEE-754 on an intel mac
      • From: Hidetomo Katsura <email@hidden>
  • Prev by Date: Re: NSDictionary dictionaryWithContentsOfFile in Carbon app
  • Next by Date: Re: More Mighty Mouse
  • Previous by thread: Re: Re: Scrolling text in Status Item - adding a menu
  • Next by thread: Re: encoding a NSDecimalNumber as IEEE-754 on an intel mac
  • Index(es):
    • Date
    • Thread