3 releases

0.1.2 Jan 27, 2021
0.1.1 Nov 26, 2020
0.1.0 Nov 26, 2020

#2290 in Algorithms

30 downloads per month
Used in mapo

MIT/Apache-2.0/ISC

6KB
118 lines

A function that works like javascript's toPrecision.

Internally it rounds and then uses the built-in algorithm, so it will give different results to toPrecision. They may converge over time.

No runtime deps