Simple++
Powerfull and lightning fast C++ Library
Public Types | Static Public Attributes | List of all members
Math::Ratio< Numerator, Denumerator > Struct Template Reference

#include <BasicMath.hpp>

Public Types

typedef Ratio< num, dentype
 

Static Public Attributes

static constexpr intmax_t num = sign( Numerator ) * sign( Denumerator ) * abs( Numerator ) / gcd( Numerator, Denumerator )
 
static constexpr intmax_t den = abs( Denumerator ) / gcd( Numerator, Denumerator )
 

Member Typedef Documentation

template<intmax_t Numerator, intmax_t Denumerator = 1>
typedef Ratio<num, den> Math::Ratio< Numerator, Denumerator >::type

Member Data Documentation

template<intmax_t Numerator, intmax_t Denumerator = 1>
constexpr intmax_t Math::Ratio< Numerator, Denumerator >::den = abs( Denumerator ) / gcd( Numerator, Denumerator )
static
template<intmax_t Numerator, intmax_t Denumerator = 1>
constexpr intmax_t Math::Ratio< Numerator, Denumerator >::num = sign( Numerator ) * sign( Denumerator ) * abs( Numerator ) / gcd( Numerator, Denumerator )
static

The documentation for this struct was generated from the following file: