arithmetic-type/double

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:1234: [@arithmetic-type/double](https://arithmetic-type.github.io/double)
==

<p align="center">
<a href="https://commons.wikimedia.org/wiki/File:Z3_Deutsches_Museum.JPG">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Z3_Deutsches_Museum.JPG/640px-Z3_Deutsches_Museum.JPG" width="300">
</a><br/>
<a href="https://en.wikipedia.org/wiki/de:User:Venusianer">
de:User:Venusianer
</a>
/
<a href="https://www.gnu.org/licenses/fdl-1.3.html">GNU FDL</a>
</p>

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
```

[![License](https://img.shields.io/github/license/arithmetic-type/double.svg)](https://raw.githubusercontent.com/arithmetic-type/double/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@arithmetic-type/double.svg)](https://www.npmjs.org/package/@arithmetic-type/double)
[![Tests](https://img.shields.io/github/actions/workflow/status/arithmetic-type/double/ci.yml?branch=main&event=push&label=tests)](https://github.com/arithmetic-type/double/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/arithmetic-type/double.svg)](https://github.com/arithmetic-type/double/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/arithmetic-type/double.svg)](https://github.com/arithmetic-type/double/issues)
[![Downloads](https://img.shields.io/npm/dm/@arithmetic-type/double.svg)](https://www.npmjs.org/package/@arithmetic-type/double)

[![Code issues](https://img.shields.io/codeclimate/issues/arithmetic-type/double.svg)](https://codeclimate.com/github/arithmetic-type/double/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/arithmetic-type/double.svg)](https://codeclimate.com/github/arithmetic-type/double/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/arithmetic-type/double/main.svg)](https://codecov.io/gh/arithmetic-type/double)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/arithmetic-type/double.svg)](https://codeclimate.com/github/arithmetic-type/double/trends/technical_debt)
[![Documentation](https://arithmetic-type.github.io/double/badge.svg)](https://arithmetic-type.github.io/double/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@arithmetic-type/double)](https://bundlephobia.com/result?p=@arithmetic-type/double)