nv-number-float-bin
1.0.2 • Public • Published
- nv-number-float-bin
- convert a 0.xxxxxxx to bin format 0.yyyyyy.....
- for test f128/f256 in nvlang, normally useless
- npm install nv-number-float-bin
> 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'
>
>
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.2
0
Version History
Package Sidebar
Install
npm i nv-number-float-bin
Weekly Downloads