# @arithmetic-type/double

> Primitive number type arithmetic for JavaScript

Latest version **5.0.0** (published 2022-10-29) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @arithmetic-type/double
pnpm add @arithmetic-type/double
yarn add @arithmetic-type/double
bun add @arithmetic-type/double
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2022-10-29 |
| First published | 2022-10-29 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 513.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | make-github-pseudonymous-again |
| Maintainers | raskat, aureooms |
| Keywords | arithmetic, javascript, js, number, primitive |

## Links

- npm: https://www.npmjs.com/package/@arithmetic-type/double
- Repository: https://github.com/arithmetic-type/double
- Homepage: https://arithmetic-type.github.io/double
- Issues: https://github.com/arithmetic-type/double/issues
- npm.io page: https://npm.io/package/@arithmetic-type/double

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 5.0.0 (latest) — 2022-10-29

## README

: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/workflow/status/arithmetic-type/double/ci?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)

---
_Source: https://npm.io/package/@arithmetic-type/double · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
