Rational Arithmetic
Utilities
Collaboration diagram for Rational Arithmetic:

## Files

file | ratio

## Classes

struct | std::ratio< _Num, _Den >
struct | std::ratio_equal< _R1, _R2 >
struct | std::ratio_greater< _R1, _R2 >
struct | std::ratio_greater_equal< _R1, _R2 >
struct | std::ratio_less< _R1, _R2 >
struct | std::ratio_less_equal< _R1, _R2 >
struct | std::ratio_not_equal< _R1, _R2 >

## Typedefs

using | std::atto
using | std::centi
using | std::deca
using | std::deci
using | std::exa
using | std::femto
using | std::giga
using | std::hecto
using | std::kilo
using | std::mega
using | std::micro
using | std::milli
using | std::nano
using | std::peta
using | std::pico
template<typename _R1, typename _R2>
using | std::ratio_add
template<typename _R1, typename _R2>
using | std::ratio_divide
template<typename _R1, typename _R2>
using | std::ratio_multiply
template<typename _R1, typename _R2>
using | std::ratio_subtract
using | std::tera

## Variables

template<typename _R1, typename _R2>
constexpr bool | std::ratio_equal_v
template<typename _R1, typename _R2>
constexpr bool | std::ratio_greater_equal_v
template<typename _R1, typename _R2>
constexpr bool | std::ratio_greater_v
template<typename _R1, typename _R2>
constexpr bool | std::ratio_less_equal_v
template<typename _R1, typename _R2>
constexpr bool | std::ratio_less_v
template<typename _R1, typename _R2>
constexpr bool | std::ratio_not_equal_v

## Detailed Description

Compile time representation of finite rational numbers.

## Typedef Documentation

## atto

using std::atto

Definition at line 618 of file ratio.

## centi

using std::centi

Definition at line 624 of file ratio.

## deca

using std::deca

Definition at line 626 of file ratio.

## deci

using std::deci

Definition at line 625 of file ratio.

## exa

using std::exa

Definition at line 633 of file ratio.

## femto

using std::femto

Definition at line 619 of file ratio.

## giga

using std::giga

Definition at line 630 of file ratio.

## hecto

using std::hecto

Definition at line 627 of file ratio.

## kilo

using std::kilo

Definition at line 628 of file ratio.

## mega

using std::mega

Definition at line 629 of file ratio.

## micro

using std::micro

Definition at line 622 of file ratio.

## milli

using std::milli

Definition at line 623 of file ratio.

## nano

using std::nano

Definition at line 621 of file ratio.

## peta

using std::peta

Definition at line 632 of file ratio.

## pico

using std::pico

Definition at line 620 of file ratio.

## ratio_add

template<typename _R1, typename _R2>

using std::ratio_add

ratio_add

Definition at line 579 of file ratio.

## ratio_divide

template<typename _R1, typename _R2>

using std::ratio_divide

ratio_divide

Definition at line 390 of file ratio.

## ratio_multiply

template<typename _R1, typename _R2>

using std::ratio_multiply

ratio_multiply

Definition at line 361 of file ratio.

## ratio_subtract

template<typename _R1, typename _R2>

using std::ratio_subtract

ratio_subtract

Definition at line 606 of file ratio.

## tera

using std::tera

Definition at line 631 of file ratio.

## Variable Documentation

## ratio_equal_v

template<typename _R1, typename _R2>

bool std::ratio_equal_v

inline constexpr

Definition at line 470 of file ratio.

## ratio_greater_equal_v

template<typename _R1, typename _R2>

bool std::ratio_greater_equal_v

inline constexpr

Definition at line 481 of file ratio.

## ratio_greater_v

template<typename _R1, typename _R2>

bool std::ratio_greater_v

inline constexpr

Definition at line 479 of file ratio.

## ratio_less_equal_v

template<typename _R1, typename _R2>

bool std::ratio_less_equal_v

inline constexpr

Definition at line 476 of file ratio.

## ratio_less_v

template<typename _R1, typename _R2>

bool std::ratio_less_v

inline constexpr

Definition at line 474 of file ratio.

## ratio_not_equal_v

template<typename _R1, typename _R2>

bool std::ratio_not_equal_v

inline constexpr

Definition at line 472 of file ratio.