std::numeric_limits<T>::is_exact

The value of std::numeric_limits::is_exact is true for all arithmetic types T that use exact representation.

# Declarations

static const bool is_exact;

(until C++11)

static constexpr bool is_exact;

(since C++11)

# Notes

While all fundamental types T for which std::numeric_limits::is_exact == true are integer types, a library may define exact types that are not integers, e.g. a rational arithmetic type representing fractions.

# See also