Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
big-decimal
Advanced tools
Javascript version of the com.ibm.icu.math.BigDecimal and com.ibm.icu.math.MathContext Java classes from the ICU4J project.
To install run: npm install big-decimal --save
var big = require('big-decimal');
var x = new big('1234.5678000');
console.log(new big("1234.0000").isLessThan(new big("1234.5678"))); // true
To build the project run: bash run_closure_compiler.sh
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.
This version includes a small bug fix in the implementation of the pow() function. See this answer on Stack Overflow for more information.
The author of the translation has stated:
Die JavaScript-Klassen sind eine 1:1-Umsetzung der
MathContext
- undBigDecimal
-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 theMathContext
andBigDecimal
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.
FAQs
Javascript version of the com.ibm.icu.math.BigDecimal and com.ibm.icu.math.MathContext Java classes from the ICU4J project.
The npm package big-decimal receives a total of 567 weekly downloads. As such, big-decimal popularity was classified as not popular.
We found that big-decimal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.