https://github.com/arithmetic-type/double
:1234: 64-bit float arithmetic for JavaScript
https://github.com/arithmetic-type/double
agpl arithmetic javascript numbers
Last synced: about 1 month ago
JSON representation
:1234: 64-bit float arithmetic for JavaScript
- Host: GitHub
- URL: https://github.com/arithmetic-type/double
- Owner: arithmetic-type
- License: agpl-3.0
- Created: 2014-11-05T20:30:52.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T02:00:50.000Z (2 months ago)
- Last Synced: 2025-04-11T00:06:10.610Z (about 1 month ago)
- Topics: agpl, arithmetic, javascript, numbers
- Language: JavaScript
- Homepage: https://arithmetic-type.github.io/double
- Size: 2.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:1234: [@arithmetic-type/double](https://arithmetic-type.github.io/double)
==64-bit float arithmetic for JavaScript.
See [docs](https://arithmetic-type.github.io/double).
Parent is [js-library](https://github.com/make-github-pseudonymous-again/js-library).```js
import {add, mul, sub, div} from '@arithmetic-type/double';
add(0.1, 0.2); // 0.30000000000000004
mul(0.1, 0.2); // 0.020000000000000004
sub(0.1, 0.2); // -0.1
div(0.1, 0.2); // 0.5
```[](https://raw.githubusercontent.com/arithmetic-type/double/main/LICENSE)
[](https://www.npmjs.org/package/@arithmetic-type/double)
[](https://github.com/arithmetic-type/double/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/arithmetic-type/double/network/dependencies)
[](https://github.com/arithmetic-type/double/issues)
[](https://www.npmjs.org/package/@arithmetic-type/double)[](https://codeclimate.com/github/arithmetic-type/double/issues)
[](https://codeclimate.com/github/arithmetic-type/double/trends/churn)
[](https://codecov.io/gh/arithmetic-type/double)
[](https://codeclimate.com/github/arithmetic-type/double/trends/technical_debt)
[](https://arithmetic-type.github.io/double/source.html)
[](https://bundlephobia.com/result?p=@arithmetic-type/double)