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.
@alisowski/decimal128
Advanced tools
Partial implementation of IEEE 754 Decimal128 decimal floating-point numbers
This library is a prototype for the decimal proposal. There should be no observable difference between what this library does and what the proposal is supposed to do. If you find a mismatch, please file an issue in this repo.
abs
)add
)subtract
)multiply
)divide
)remainder
)round
)toString
emitting both decimal and exponential syntax (default is decimal)equals
) to compare for mathematical equalitylessThan
) to compare mathematical ordercompare
for comparing Decimals as digit strings (not mathematical order; e.g. 1.2
< 1.20
)This package is written in TypeScript. Unit tests are in Jest. There are no other external dependencies.
This package aims to reproduce the IEEE 754 Decimal128 128-bit decimal floating-point numbers in JavaScript. See the decimal proposal. These decimal (not binary!) numbers take up 128 bits per number. This format allows for an exact representation of decimal numbers with 34 (decimal) significant digits and an exponent between -6143 and 6144. That's a vast amount of range and precision!
FAQs
Partial implementation of IEEE 754 Decimal128 decimal floating-point numbers
The npm package @alisowski/decimal128 receives a total of 4 weekly downloads. As such, @alisowski/decimal128 popularity was classified as not popular.
We found that @alisowski/decimal128 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.