|
-
February 26th, 2008, 06:10 PM
#1
Re: How large of a #can I use geometry
Hello everybody c:
if I have a number like the example below will visual studio 5 pro and the <math> or <cmath> library allow it to work and if I code it correctly (my function) will it deliver radians like 0.->15 decimal places long?
Example#: 463526353645364747845758748753629578458295748943889
using atan or tan or even * or /?
Thanks so much, I appreciate any advice.
PCB
-
February 28th, 2008, 08:41 AM
#2
Re: How large of a #can I use geometry
If you use 64 bit integers, you are limited to 64 bit numbers.
If you want longer numbers you need a BigInt class. Search the articles on www.codeguru.com, I'm sure there is a BigInt class somewhere.
-
February 28th, 2008, 08:46 AM
#3
Re: How large of a #can I use geometry
If you want longer numbers you need a BigInt class.
One such library is the GMP.
EDIT:
Oh wait, GMP does not support those trigo functions, so you would need to use it with the MPFR add-on library.
Last edited by laserlight; February 28th, 2008 at 08:49 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|