1
I Use This!
Inactive
Analyzed about 9 hours ago. based on code collected about 9 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...

  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    55% of companies leverage OSS for production infrastructure
  • ...
    you can embed statistics from Open Hub on your site

Languages

C++
96%
2 Other
4%

30 Day Summary

Jan 28 2026 — Feb 27 2026

12 Month Summary

Feb 27 2025 — Feb 27 2026

Ratings

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