std::ratio< _Num, _Den >(3) Library Functions Manual NAME std::ratio< _Num, _Den > - Provides compile-time rational arithmetic. SYNOPSIS #include Public Types typedef ratio< num, den > type Static Public Attributes static constexpr intmax_t den static constexpr intmax_t num Detailed Description template struct std::ratio< _Num, _Den >"Provides compile-time rational arithmetic. This class template represents any finite rational number with a numerator and denominator representable by compile-time constants of type intmax_t. The ratio is simplified when instantiated. For example: std::ratio<7,-21>::num == -1; std::ratio<7,-21>::den == 3; Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ std::ratio< _Num, _Den >(3)