Anything more precise than long double

M

Moritz Beller

Hello!

I need a floating point data type and a sqrt function* that are much
more precise than those provided by the standard library.

best regards
Moritz Beller

* Don't really know how much decimals the standard function returns.
But, as a matter of logic, it shouldn't be any better than the 15
decimals variables of type double are able to manage.
 
V

Victor Bazarov

Moritz Beller said:
I need a floating point data type and a sqrt function* that are much
more precise than those provided by the standard library.
[...]

Search the web for "arbitrary precision arithmetic C++"

V
 
C

Chris Theis

Moritz Beller said:
Hello!

I need a floating point data type and a sqrt function* that are much
more precise than those provided by the standard library.

best regards
Moritz Beller

There are a couple of libraries around that can handle large amounts of
digits, which is for example commonly needed in cryptography. They usually
handle the numbers a strings and provide also the necessary mathematical
functionality. Search the web for GMP (Gnu multiple precision) library or
MAPM.

HTH
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top