Content-Length: 297462 | pFad | http://github.com/shrpne/from-exponential

CF GitHub - shrpne/from-exponential: Lightweight module to convert number from exponential notation to a human readable string.
Skip to content

Lightweight module to convert number from exponential notation to a human readable string.

License

Notifications You must be signed in to change notification settings

shrpne/from-exponential

Repository files navigation

from-exponential

NPM Package Minified Size Build Status Coverage Status License: MIT

Lightweight module to convert number from exponential notation to a human readable string.

Works opposite to Number.prototype.toExponential()

Install

npm install from-exponential

Usage

import fromExponential from 'from-exponential';

fromExponential(1.123e-10); // => '0.0000000001123'
fromExponential('-12.123e-1'); // => '-1.2123'
fromExponential(Number.MAX_VALUE); // => '179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'

Related

It is complemented by the following packages:

  • pretty-num all-in-one solution for pretty numbers: format exponential, add thousands separator, reduce decimal precision
  • thousands add thousands separators

License

MIT License

About

Lightweight module to convert number from exponential notation to a human readable string.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/shrpne/from-exponential

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy