nv-facutil-i
v1.0.3
Published
nv-facutil-i ======================= - some consts of interger - for convert number/bigint from JS to nvlang TEST - nvlang did NOT distinguash int AND bigint in syntax
Downloads
6
Readme
nv-facutil-i
- some consts of interger
- for convert number/bigint from JS to nvlang TEST
- nvlang did NOT distinguash int AND bigint in syntax
install
- npm install nv-facutil-i
usage
const x = require("nv-facutil-i");
example
> x.is_i8(-128)
true
> x.is_i8(-129)
false
> x.is_i8(127)
true
> x.is_i8(128)
false
> x.is_i8(-129n)
false
> x.is_i8(-128n)
true
> x.is_i8(127n)
true
> x.is_i8(128n)
false
>
METHODS
APIS
{
_N: [Function: Number],
_BI: [Function: BigInt],
b2n: [Function: b2n],
n2b: [Function: n2b],
BI_INFI_FOR_NUM: 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368n,
'BI_TYPNM$S': 'bigint',
MIN_BI8: 128n,
MAX_BI8: 127n,
MIN_BI16: -32768n,
MAX_BI16: 32767n,
MIN_BI32: -2147483648n,
MAX_BI32: 2147483647n,
MIN_BI64: -9223372036854775808n,
MAX_BI64: 9223372036854775807n,
MIN_I8: -128,
MAX_I8: 127,
MIN_I16: -32768,
MAX_I16: 32767,
MIN_I32: -2147483648,
MAX_I32: 2147483647,
MIN_SAFE_I64: -9007199254740991,
MAX_SAFE_I64: 9007199254740991,
MIN_BUI: 0n,
MAX_BUI8: 256n,
MAX_BUI16: 65536n,
MAX_BUI32: 4294967296n,
MAX_BUI64: 18446744073709551616n,
MIN_UI: 0,
MAX_UI8: 256,
MAX_UI16: 65536,
MAX_UI32: 4294967296,
MAX_SAFE_UI64: 9007199254740991,
is_int: [Function: is_int],
_is_intx: [Function: _is_intx],
get_min_intx: [Function: get_min_intx],
get_max_intx: [Function: get_max_intx],
_is_i8: [Function: _is_i8],
_is_i16: [Function: _is_i16],
_is_i32: [Function: _is_i32],
_is_i64: [Function: _is_i64],
_is_safe_i64: [Function: _is_safe_i64],
_is_i64_allow_unsafe: [Function: _is_i64_allow_unsafe],
_is_uintx: [Function: _is_uintx],
get_min_uintx: [Function: get_min_uintx],
get_max_uintx: [Function: get_max_uintx],
_is_ui8: [Function: _is_ui8],
_is_ui16: [Function: _is_ui16],
_is_ui32: [Function: _is_ui32],
_is_ui64: [Function: _is_ui64],
_is_safe_ui64: [Function: _is_safe_ui64],
_is_ui64_allow_unsafe: [Function: _is_ui64_allow_unsafe],
is_bi: [Function: is_bi],
_is_bix: [Function: _is_bix],
_is_bi8: [Function: _is_bi8],
_is_bi16: [Function: _is_bi16],
_is_bi32: [Function: _is_bi32],
_is_bi64: [Function: _is_bi64],
_is_buix: [Function: _is_buix],
_is_bui8: [Function: _is_bui8],
_is_bui16: [Function: _is_bui16],
_is_bui32: [Function: _is_bui32],
_is_bui64: [Function: _is_bui64],
_is_very_big_ui: [Function: _is_very_big_ui],
_is_very_big_i: [Function: _is_very_big_i],
_is_very_big_posi: [Function: _is_very_big_posi],
_is_very_big_negi: [Function: _is_very_big_negi],
is_ix: [Function: is_ix],
is_i8: [Function: is_i8],
is_i16: [Function: is_i16],
is_i32: [Function: is_i32],
is_i64: [Function: is_i64],
is_uix: [Function: is_uix],
is_ui8: [Function: is_ui8],
is_ui16: [Function: is_ui16],
is_ui32: [Function: is_ui32],
is_ui64: [Function: is_ui64]
}
LICENSE
- ISC