Miguel TOLEDO GONZALEZ

2018-11-06 20:13:49 UTC

Hi, i'm not sure what precision corresponds to double float types. I have

read somewhere that a double type is stored in memory with 8 Bytes, what is

then,

the corresponding arithmetical precision for these types?

I mean precision as maximal digit's accuracy. For example:

2.1 = 2+0.1 = 2 + 1e-1 has 1 decimal digit of accuracy, and so on:

2.123456789 = 2 + 1e-1 + 2e-2 + 3e-3 + 4e-4 + 5e-5 + ... + 9e-9

with 9 digits of accuracy, and so for any finite series, meaning e-x =

10EXP(-x).

* My question is, how in standard ISO C++17 that digit's accuracy is

defined.

What is then the maximal digits accuracy for C++17 ?

read somewhere that a double type is stored in memory with 8 Bytes, what is

then,

the corresponding arithmetical precision for these types?

I mean precision as maximal digit's accuracy. For example:

2.1 = 2+0.1 = 2 + 1e-1 has 1 decimal digit of accuracy, and so on:

2.123456789 = 2 + 1e-1 + 2e-2 + 3e-3 + 4e-4 + 5e-5 + ... + 9e-9

with 9 digits of accuracy, and so for any finite series, meaning e-x =

10EXP(-x).

* My question is, how in standard ISO C++17 that digit's accuracy is

defined.

What is then the maximal digits accuracy for C++17 ?

--

---

You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.

To unsubscribe from this group and stop receiving emails from it, send an email to std-discussion+***@isocpp.org.

To post to this group, send email to std-***@isocpp.org.

Visit this group at https://groups.google.com/a/isocpp.org/group/std-discussion/.

---

You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.

To unsubscribe from this group and stop receiving emails from it, send an email to std-discussion+***@isocpp.org.

To post to this group, send email to std-***@isocpp.org.

Visit this group at https://groups.google.com/a/isocpp.org/group/std-discussion/.