1
I Use This!
Inactive
Analyzed about 6 hours ago. based on code collected about 7 hours ago.

Project Summary

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

Tags

c++ c++11 cln expression_templates fraction gmp library math mathematics numbertheory template

In a Nutshell, rational...

GNU Lesser General Public License v3.0 or later
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Use Patent Claims

Forbidden

Sub-License

Hold Liable

Required

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.

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog
  • ...
    55% of companies leverage OSS for production infrastructure
  • ...
    compare projects before you chose one to use

Languages

C++
96%
2 Other
4%

30 Day Summary

Dec 20 2025 — Jan 19 2026

12 Month Summary

Jan 19 2025 — Jan 19 2026

Ratings

Be the first to rate this project
Click to add your rating
  
Review this Project!