approximate-number icon indicating copy to clipboard operation
approximate-number copied to clipboard

Converts numbers into a more human-friendly format. E.g. 123456 becomes 123k. Similar to `ls -lh` or Stack Overflow's reputation numbers.

Results 5 approximate-number issues
Sort by recently updated
recently updated
newest added

This should at least be an option, and possibly the default behavior: ```js (12345.6).toLocaleString() // '12,345.6' in the US (12345.6).toLocaleString('de-DE') // '12.345,6' in firefox, '12,345.6' in node.js :( (12345.67).toLocaleString('en-US', {maximumFractionDigits:...

```js approx(64876440039.52) // comes out as: 64b ``` I want this to read "64.8b" or "64.9b" based on rounding. Would be great if you could specify in the config option...

In the configuration object, would be great if you could specify if the unit should be appreviated or written out. Example: ``` approx(10000) // 10k approx(10000, { abbreviation: false })...

JS's max safe integer is about 9 quadrillion, but there's no reason to stop there when we're approximating anyways. Since both quadrillion and quintillion start with a "q", we'd want...