Bill the Lizard - 5 months ago 18

C++ Question

Does anyone know how to find out the precision of

`long double`

`double`

`double`

`long double`

Before you ask, this is for Project Euler, so yes I

`long double`

Answer

You can find out with `std::numeric_limits`

:

```
#include <iostream> // std::cout
#include <limits> // std::numeric_limits
int main(){
std::cout << std::numeric_limits<long double>::digits10 << std::endl;
}
```