Skip to content

Arbitrary-precision decimals library for JavaScript

Notifications You must be signed in to change notification settings

latentflip/BigDecimal.js

Repository files navigation

This is a copy of version 1.0.1 of the STZ-IDA JavaScript translation of the com.ibm.icu.math.BigDecimal and com.ibm.icu.math.MathContext Java classes from the ICU4J project.

Version History

This version includes a small bug fix in the implementation of the pow() function. See this answer on Stack Overflow for more information.

License

The author of the translation has stated:

Die JavaScript-Klassen sind eine 1:1-Umsetzung der MathContext- und BigDecimal-Java-Klassen, die IBM im Projekt International Components for Unicode for Java realisiert hat. Sie stehen unter der gleichen Lizenz wie die Original-Klassen, was im wesentlichen bedeutet, dass sie beliebig verwendet werden dürfen, sofern die Copyright-Angaben erhalten bleiben. / The JavaScript classes are a one-to-one translation of the MathContext and BigDecimal Java classes that IBM implemented for the ICU4J project. They are licensed under the same license as the original classes, which essentially means that they may be used freely, provided that the copyright information remains.

Using ICU4J's Subversion repository, I was able to determine that the JavaScript was generated from the versions of MathContext.java and BigDecimal.java that were first distributed with ICU4J release 2.4, and unmodified in each subsequent release. The JavaScript sources, therefore, are licensed under the terms of the ICU4J License, either the version thereof that was distributed with ICU4J-2.4 or any subsequent release.

About

Arbitrary-precision decimals library for JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published