# net::rational

#include <rational.hpp>

# Public Functions

Name
rational() =default
rational(const int & num)
rational(const int & num, const int & denom)
rational(const rational & ) =default
~rational() =default
double to_double() const
int to_int() const

# Public Attributes

Name
int numerator
int denominator

# Public Functions Documentation

# function rational

rational() =default

# function rational

inline rational(
    const int & num
)

# function rational

inline rational(
    const int & num,
    const int & denom
)

# function rational

rational(
    const rational & 
) =default

# function ~rational

~rational() =default

# function to_double

inline double to_double() const

# function to_int

inline int to_int() const

# Public Attributes Documentation

# variable numerator

int numerator = 0;

# variable denominator

int denominator = 1;

Updated on 15 June 2022 at 16:04:19 CST