cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Public Types | List of all members
ratio< N, D > Struct Template Reference

Represents finite rational numbers with numerator and denominator that fit into C++'s type system. More...

Public Types

typedef ratio< num, den > type
 Exposes the proper rational number type, in its reduced form.
 

Detailed Description

template<intmax_t N, intmax_t D = 1>
struct std::ratio< N, D >

Represents finite rational numbers with numerator and denominator that fit into C++'s type system.

Template Parameters
NNumerator, a value of type intmax_t
DDenominator, a value of type intmax_t
C++11 Backports:
Rational arithmetic type
Rational arithmetic type

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