Provided by: libstdc++6-4.4-doc_4.4.7-1ubuntu2_all

**NAME**

std::ratio< _Num, _Den > -

**SYNOPSIS**

PublicMemberFunctionsstatic_assert(_Den!=0,'denominator cannot be zero')static_assert(_Num >=-__INTMAX_MAX__ &&_Den >=-__INTMAX_MAX__,'out of range')StaticPublicAttributesstatic const intmax_tdenstatic const intmax_tnum

**Detailed** **Description**

template<intmax_t_Num,intmax_t_Den=1>structstd::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; Definition at line 151 of file ratio.

**Author**

Generated automatically by Doxygen for libstdc++ from the source code.