nv-id-asc-f64
v1.0.2
Published
nv-id-asc-f64 ======================= - A simple generator for consecutive IEEE-754 double-precision numbers (f64), starting from a specified positive integer BASE between [1,65536) - Each call returns the next f64 in sequence, ideal for test data niderat
Readme
nv-id-asc-f64
- A simple generator for consecutive IEEE-754 double-precision numbers (f64), starting from a specified positive integer BASE between [1,65536)
- Each call returns the next f64 in sequence.
- Supports resuming from a given last ID to continue the sequence seamlessly
install
- npm install nv-id-asc-f64
usage
const x = require("nv-id-asc-f64");
> [Function (anonymous)] { conti: [Function: conti] } example
new
> var nid=x()
> nid
[Function: gen] { gid: 17389 }
>
> nid()
17389.000000000004
> nid()
17389.000000000007
> nid()
17389.00000000001
> nid()
17389.000000000015
>
> var lstid = nid()
> lstid
17389.00000000002
> continue
> nid = x.conti(lstid)
[Function: gen] { gid: 17389 }
>
> nid()
17389.000000000022
>
> nid()
17389.000000000025
> nid()
17389.00000000003
> nid()
17389.000000000033
> nid()
17389.000000000036
> nid()
17389.00000000004
> METHODS
APIS
LICENSE
- ISC
