libstdc++
|
Static Public Attributes | |
static const intmax_t | den |
static const intmax_t | num |
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: