1.0.2 • Published 1 year ago

nv-number-float-bin v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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