Very long double

I know that for very long ints there is int64. Is there something similar for very long doublings? I want to keep the number with very great accuracy.

+3
source share
3 answers

long doubleis the largest standard type. If this is not enough, you will need a bignum library (e.g. GMP )

+5
source

Take a look:

What is the accuracy of a long double in C ++?

It depends on the implementation.

I got the feeling that something like a long double might appear in the new C ++ 0x standard, but I forgot, I'll check it soon.

Edit: checked, my bad, no change: a long double is at least as good as a double.

+3
source

http://gmplib.org/

GMP is a free library for arbitrary precision arithmetic, acting on integers, rational numbers, and floating point numbers. There is no practical limit on accuracy except for the fact that the available memory in the GMP machine continues. GMP has a rich feature set, and functions have a regular interface.

+3
source

All Articles