NAME
SPVM::Number::Util - Number utilities
CLASS METHODS
BYTE_MIN_VALUE
sub BYTE_MIN_VALUE : byte ($class : class)
A constant holding the minimum value a byte can have, -128
.
BYTE_MAX_VALUE
BYTE_MAX_VALUE : byte ($class : class)
A constant holding the maximum value a byte can have, 127
.
BYTE_BYTES
sub BYTE_BYTES : int ($class : class)
The number of bytes used to represent a byte value in two's complement binary form, 1
.
BYTE_SIZE
sub BYTE_SIZE : int ($class : class)
The number of bits used to represent a byte value in two's complement binary form, 8
.
SHORT_MIN_VALUE
sub SHORT_MIN_VALUE : short ($class : class)
A constant holding the minimum value a short can have, -32768
.
SHORT_MAX_VALUE
sub SHORT_MAX_VALUE : short ($class : class)
A constant holding the maximum value a short can have, 32767
.
SHORT_BYTES
sub SHORT_BYTES : int ($class : class)
The number of shorts used to represent a short value in two's complement binary form, 2
.
SHORT_SIZE
sub SHORT_SIZE : int ($class : class)
The number of bits used to represent a short value in two's complement binary form, 16
.
INT_MIN_VALUE
sub INT_MIN_VALUE : int ($class : class)
A constant holding the minimum value a int can have, -2147483648
.
INT_MAX_VALUE
sub INT_MAX_VALUE : int ($class : class)
A constant holding the maximum value a int can have, 2147483647
.
INT_BYTES
sub INT_BYTES : int ($class : class)
The number of ints used to represent a int value in two's complement binary form, 4
.
INT_SIZE
sub INT_SIZE : int ($class : class)
The number of bits used to represent a int value in two's complement binary form, 32
.
LONG_MIN_VALUE
sub LONG_MIN_VALUE : long ($class : class)
A constant holding the minimum value a long can have, -9223372036854775808
.
LONG_MAX_VALUE
sub LONG_MAX_VALUE : long ($class : class)
A constant holding the maximum value a long can have, 9223372036854775807
.
LONG_BYTES
sub LONG_BYTES : int ($class : class)
The number of longs used to represent a long value in two's complement binary form, 8
.
LONG_SIZE
sub LONG_SIZE : int ($class : class)
The number of bits used to represent a long value in two's complement binary form, 64
.
FLOAT_MIN_VALUE
sub FLOAT_MIN_VALUE : float ($class : class)
A constant holding the minimum value a float can have, -128
.
FLOAT_MAX_VALUE
sub FLOAT_MAX_VALUE : float ($class : class)
A constant holding the maximum value a float can have, 127
.
FLOAT_SIZE
sub FLOAT_SIZE : int ($class : class)
The number of bits used to represent a float value in two's complement binary form.
FLOAT_BYTES
sub FLOAT_BYTES : int ($class : class)
The number of floats used to represent a float value in two's complement binary form.
DOUBLE_MIN_VALUE
sub DOUBLE_MIN_VALUE : double ($class : class)
A constant holding the minimum value a double can have, -128
.
DOUBLE_MAX_VALUE
sub DOUBLE_MAX_VALUE : double ($class : class)
A constant holding the maximum value a double can have, 127
.
DOUBLE_SIZE
sub DOUBLE_SIZE : int ($class : class)
The number of bits used to represent a double value in two's complement binary form.
DOUBLE_BYTES
sub DOUBLE_BYTES : int ($class : class)
The number of doubles used to represent a double value in two's complement binary form.