Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is Calc limited in exponent to 1e300 and 15 digits precision?

0
Posted

Why is Calc limited in exponent to 1e300 and 15 digits precision?

0

Calc is written using the programming language C++ and using the Microsoft Visual C++ development system and runtime support, which includes a mathematics library with various floating point variable types. We use the data type with the greatest precision on 32 bit systems, which has a maximum (base 10) exponent of 308 and a little over 15 digits of precision in the mantissa. This is not dependent on the operating system, nor is it dependent on the floating point hardware (provided performance is not an issue). We could use a special high precision maths library, or write our own, to get arbitrarily high levels of precision. But the applications of higher precision mathematics are fairly specialised and we did not think it justified the programming effort or performance penalty in a general purpose scientific and engineering tool like Calc.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123