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;
}
More Related Contents:
- How do I print a double value with full precision using cout?
- What is the difference between float and double?
- Double precision – decimal places
- C++ floating point precision [duplicate]
- long double vs double
- Dividing two integers to produce a float result [duplicate]
- In which order should floats be added to get the most precise result?
- Are all integer values perfectly represented as doubles? [duplicate]
- Emulate “double” using 2 “float”s
- Why did Microsoft abandon long double data type? [closed]
- How to ‘cout’ the correct number of decimal places of a double value?
- Issue when scheduling tasks using clock() function
- Set back default floating point print precision in C++
- What is the purpose of max_digits10 and how is it different from digits10?
- Matlab vs C++ Double Precision
- Is there a functional difference between “2.00” and “2.00f”?
- Exact decimal datatype for C++?
- Show two digits after decimal point in c++ [duplicate]
- Why does the expression 'a++ += b' give an error?
- Conditions for automatic generation of default/copy/move ctor and copy/move assignment operator?
- using extern template (C++11)
- Best way to extract a subvector from a vector?
- C++ syntax for explicit specialization of a template function in a template class?
- When and how to use GCC’s stack protection feature?
- Are there any better methods to do permutation of string?
- C++ Remove punctuation from String
- Easiest way to rotate by 90 degrees an image using OpenCV?
- memset structure with std::string contained
- How to read/write std::string values from/to binary files
- When can we omit the return type in a C++11 lambda?