Skip to content

BigInteger, Fraction and FractionData classes for JavaScript.

Notifications You must be signed in to change notification settings

ersagunkuruca/fraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fraction

BigInteger, Fraction and FractionData classes for JavaScript.

Somewhat undocumented right now, so here is a quick introduction:

  • BigInteger implements arbitrarily large integer operations by using a 32 bit integer array and a sign property for each integer.
  • Fraction implements arbitrary fractions using two BigIntegers one for numerator, one for denominator. Normalization is off by default for now. GCD is too slow for large integers.
  • FractionData extracts arbitrary data from a Fraction between 0 and 1. It can decode any arithmetic coded data.

BigInteger and Fraction classes have similar methods. Methods starting with an underscore change the original data.

About

BigInteger, Fraction and FractionData classes for JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published