• 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
Re: Very long floating point numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very long floating point numbers


  • Subject: Re: Very long floating point numbers
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 24 May 2002 07:42:57 -0700

Also checkout <http://developer.apple.com/hardware/ve/pdf/oct3a.pdf>.


-Shawn

On Friday, May 24, 2002, at 07:37 AM, Shawn Erickson wrote:

What do you mean by store? persistently, in RAM, etc.

float is a 32 bit number (as defined by IEEE)...
S EEEEEEEE FFFFFFFFFFFFFFFFFFFFFFF
0 1 8 9 31

double is a 64 but number...
S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0 1 11 12 63

E = exponent
F = fraction
S = sign

If you need to do operations on bigger numbers consider Apple's vBigNum library ( <http://developer.apple.com/hardware/ve/vector_libraries.html>). If supports 256, 512, 1024 bit numbers, not sure if it does floats...? Also other libraries exist that do the same thing.

If you don't need to do any processing simply store them in a string form.

-Shawn

On Friday, May 24, 2002, at 07:07 AM, Martin Weil wrote:

Hi!
Is there any way to store floating point numbers beyond the 16 letter limit?

Thanks,
Martin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Very long floating point numbers
      • From: David Remahl <email@hidden>
References: 
 >Re: Very long floating point numbers (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Very long floating point numbers
  • Next by Date: Re: Very long floating point numbers
  • Previous by thread: Re: Very long floating point numbers
  • Next by thread: Re: Very long floating point numbers
  • Index(es):
    • Date
    • Thread