Skip to content

c8_rational

Dave Hudson edited this page May 3, 2017 · 5 revisions

c8::rational

c8::rational is a class designed to represent the rational numbers (ratios of two integers). Rationals are able to express all of the numbers computable by a digital system, and, for example, are able to represent all floating point numbers.

Constructors

Destructor

  • ~rational

Assignment Operators

Unary Operators

Arithmetic Operators

Compound Assignment Operators

Comparison Operators

Public Member Functions

Friend Functions

  • friend auto operator <<(std::ostream &outstr, const rational &v) -> std::ostream &

See Also

Clone this wiki locally