Bill the Lizard - 1 year ago 55

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 Source

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;
}
```