parsegraph-getnumberparts
TypeScript icon, indicating that this package has built-in type declarations

1.6.6 • Public • Published

parsegraph-getnumberparts

This module provides a function to extract the sign, exponent, and mantissa from a given number.

import getNumberParts from 'parsegraph-getnumberparts';

const parts = getNumberParts(2/3);
console.log(parts);
// Output: { sign: 0, exponent: -1, mantissa: 1.3333333333333333 }

Readme

Keywords

none

Package Sidebar

Install

npm i parsegraph-getnumberparts

Weekly Downloads

0

Version

1.6.6

License

MIT

Unpacked Size

7.93 kB

Total Files

10

Last publish

Collaborators

  • dafrito