Returns the maximum safe integer capable of being represented by a numeric real type.
The following numeric real types are supported:
float64
float32
float16
must provide a recognized numeric type
numeric type
maximum safe integer
var m = safeintmax( 'float64' ); // returns 9007199254740991
var m = safeintmax( 'float16' ); // returns 2047
var m = safeintmax( 'float32' ); // returns 16777215
Returns the maximum safe integer capable of being represented by a numeric real type.
Notes
The following numeric real types are supported:
float64
: double-precision floating-point numbersfloat32
: single-precision floating-point numbersfloat16
: half-precision floating-point numbersmust provide a recognized numeric type