Return the minimum safe integer capable of being represented by a numeric real type.
var safeintmin = require( '@stdlib/utils/safe-int-min' );
Returns the minimum safe integer capable of being represented by a numeric real type.
var m = safeintmin( 'float64' );
// returns -9007199254740991
The following numeric real types are supported:
float64
: double-precision floating-point numbersfloat32
: single-precision floating-point numbersfloat16
: half-precision floating-point numbers
var safeintmin = require( '@stdlib/utils/safe-int-min' );
var m = safeintmin( 'float64' );
// returns -9007199254740991
m = safeintmin( 'float32' );
// returns -16777215
m = safeintmin( 'float16' );
// returns -2047
Usage: safeintmin [options] <dtype>
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ safeintmin float16
-2047
@stdlib/utils/safe-int-max
: return the maximum safe integer capable of being represented by a numeric real type.@stdlib/utils/real-min
: return the smallest positive normal value capable of being represented by a numeric real type.@stdlib/utils/type-min
: return the minimum value of a specified numeric type.