An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

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







de:User:Venusianer

/
GNU FDL

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)