nv-number-float-bin

1.0.2 • Public • Published

nv-number-float-bin

  • nv-number-float-bin
  • convert a 0.xxxxxxx to bin format 0.yyyyyy.....
  • for test f128/f256 in nvlang, normally useless

install

  • npm install nv-number-float-bin

usage

example

    > const x=require("nv-number-float-bin")
    {
      Ctx: [class Ctx],
      _10to2: [Function: _10to2],
      _from_str: [Function: _from_str],
      estimate: [Function: estimate],
      from_str: [Function: from_str]
    }

    > var max_width = 52;
    > x.from_str("0.123",max_width)
    '0.0001111101111100111011011001000101101000011100101011'
    >
    >

APIS

LICENSE

  • ISC

Readme

Keywords

none

Package Sidebar

Install

npm i nv-number-float-bin

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.88 kB

Total Files

3

Last publish

Collaborators

  • ihgazni2