Click to See Complete Forum and Search --> : Re: How large of a #can I use geometry


ptreys
February 26th, 2008, 05:10 PM
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

Marc G
February 28th, 2008, 07:41 AM
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.

laserlight
February 28th, 2008, 07:46 AM
If you want longer numbers you need a BigInt class.
One such library is the GMP (http://www.gmplib.org).

EDIT:
Oh wait, GMP does not support those trigo functions, so you would need to use it with the MPFR add-on library.