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 are so many decimal digits provided?

decimal digits provided
0
Posted

Why are so many decimal digits provided?

0

Because 40 decimal digits are needed to ensure that internal floating point values are defined correctly after rounding for floating-point hardware up to 128 significand bits. (For interval constants, twice as many as significand digits are needed to ensure that decimal digit strings are exactly representable C++ values). If the Standard C float.h is available, the macro FLT_MANT_DIG may provide the number of digits (usually radix 2) in the significand (mantissa) that limits precision (but not the maximum or minimum values : these constrained mainly by the maximum exponent).

Related Questions

What is your question?

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

Experts123