Jump to content

C++ Language/Std/CRuntime/Math/RationalNumbers

From Wikibooks, open books for an open world

Just as 3 is a literal form of an integer, std::ratio<-4,3> is a literal form of a rational number.

Additional information about rational numbers (includes interactive examples)