Re: Big Int support
Re: Big Int support
- Subject: Re: Big Int support
- From: Wayne Hasley <email@hidden>
- Date: Mon, 2 Jun 2003 15:55:25 -0400
From: Wayne Hasley <email@hidden>
Date: Mon Jun 2, 2003 3:40:57 PM US/Eastern
To: Chad Armstrong <email@hidden>
Subject: Re: Big Int support
On Monday, June 2, 2003, at 01:28 PM, Chad Armstrong wrote:
Not exactly a Cocoa-related question, but it could be incorporated
into a Cocoa program. Is there a library or way to create 'big int'
support so a number isn't limited to the particular bounds of int,
float, or even an unsigned long?
Finally a question I can answer!
You want an arbitrary-precision math library.
A long time ago I ported similar code to the Macintosh
These are usually done using BCD (Binary Coded Decimal).
I did a Google search. IBM provides source for their decNumber package;
an arbitrary-precision implementation of the specifications in ANSI C.
Warning! There are some heavy license requirements in this package. You
might want to search for another.
See
http://www.alphaworks.ibm.com/tech/decNumber
Wayne
_______________________________________________
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.