Returns the maximum value of a specified numeric type.
The following numeric types are supported:
float64
float32
float16
int32
uint32
int16
uint16
int8
uint8
uint8c
must provide a recognized numeric type
numeric type
maximum value
var m = typemax( 'int8' ); // returns 127
var m = typemax( 'uint8' ); // returns 255
var m = typemax( 'int16' ); // returns 32767
Returns the maximum value of a specified numeric type.
Notes
The following numeric types are supported:
float64
: double-precision floating-point numbersfloat32
: single-precision floating-point numbersfloat16
: half-precision floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255must provide a recognized numeric type