Re: Big Int support
Re: Big Int support
- Subject: Re: Big Int support
- From: Jeff Harrell <email@hidden>
- Date: Mon, 2 Jun 2003 13:26:38 -0500
I may have misunderstood your question, but here's a stab at it anyway.
If you're just talking about doing simple calculations on big numbers,
you can use the UNIX command "bc". It's a handle little
sort-of-desktop-calculator, and it's got a "man" page. For instance,
you can use "bc" to calculate 2-to-the-one-thousandth. (Or 2^10000, or
10^10000, or any similar large number.)
[monty:~] jeff% bc
bc 1.05
Copyright 1991, 1992, 1993, 1994, 1997, 1998 Free Software Foundation,
Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2^1000
10715086071862673209484250490600018105614048117055336074437503883703\
51051124936122493198378815695858127594672917553146825187145285692314\
04359845775746985748039345677748242309854210746050623711418779541821\
53046474983581941267398767559165543946077062914571196477686542167660\
429831652624386837205668069376
(To get out of "bc", type control-D.)
On Monday, June 2, 2003, at 12: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?
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.