Subject: Re: max int value
To: Fong Siu Lung Gordon <firstname.lastname@example.org>
From: Peter Seebach <email@example.com>
Date: 05/16/2000 00:31:55
In message <Pine.SOL.firstname.lastname@example.org>, Fong
Siu Lung Gordon writes:
>I recently write a problem that needs digits as long as 14. As I know the
>INT_MAX only 10 digits. How can I use digit which have 14 characters
>long. Please help.
This is really not topical.
1. Use "int64_t".
2. You might try "long double".
3. Use a multiprecision math library.
Until you tell people exactly what properties these numbers need to have, they
can't help you.