A C++ rational (fraction) template class
Include rational.h to be able to do fraction calculations. By simply including rational.h and specifying the storage type (any integer variant) you can create and use a fractional data type.
Features
* exchangeable GCD algorithms
* optional signed
... [More] overflow/unsigned wrap checking
* optimized for signed and unsigned types
* construction of inproper (mixed) fractions and approximated fractions
* Support for the GNU Multiple Precision Arithmetic Library and the CLN - Class Library for Numbers as underlying storage type
* Expression templates for domain specific programming [Less]
Hipparchus is a library of lightweight, self-contained
mathematics and statistics components addressing the most common problems not available in the Java programming language.
A calculator plasma widget for the KDE Plasma 5 desktop environment which uses the Qalculate! library to provide lots of features like unit calculation and currency conversion.
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy