Skip to content

akalin/fraction.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

There are many fraction/rational Javascript libraries, but this one's
mine. :-)

There are two classes: Fraction and Rational. Fraction doesn't assume
the type of the numerator and denominator is anything more than an
integral domain. In other words, it doesn't try to reduce the fraction
to lowest terms.

Rational does assume the type is a GCD domain, and so it uses that to
reduce the fraction to lowest terms.

About

A fraction/rational library for Javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published