Re: Very long floating point numbers
Re: Very long floating point numbers
- Subject: Re: Very long floating point numbers
- From: Shawn Erickson <email@hidden>
- Date: Fri, 24 May 2002 07:37:11 -0700
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.