CNL
2.0.2 (development)
Compositional Numeric Library
|
numeric type represented as the fraction, numerator /
denominator
More...
#include <definition.h>
Public Types | |
using | denominator_type = Denominator |
alias to Denominator | |
using | numerator_type = Numerator |
alias to Numerator | |
Public Member Functions | |
template<std::floating_point Scalar> | |
constexpr | operator Scalar () const |
returns the quotient, numerator / denominator | |
Public Attributes | |
denominator_type | denominator = 1 |
the denominator (bottom number) of the fraction | |
numerator_type | numerator |
the numerator (top number) of the fraction | |
numeric type represented as the fraction, numerator /
denominator
Numerator | the type of numerator |
Exponent | the type of denominator |