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 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
Commercial Use
Modify
Distribute
Place Warranty
Use Patent Claims
Sub-License
Hold Liable
Distribute Original
Disclose Source
Include Copyright
State Changes
Include License
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.
30 Day SummaryAug 18 2025 — Sep 17 2025
|
12 Month SummarySep 17 2024 — Sep 17 2025
|