++ed by:
SKOLYCHEV DMOL HAMMER BEROV FAYLAND

7 PAUSE users
4 non-PAUSE users.

Yuki Kimoto
and 1 contributors

NAME

SPVM::Std::Number::Util - Standard Number utilities

CLASS METHODS

BYTE_MIN_VALUE

sub BYTE_MIN_VALUE : byte ()

A constant holding the minimum value a byte can have, -128.

BYTE_MAX_VALUE

BYTE_MAX_VALUE : byte ()

A constant holding the maximum value a byte can have, 127.

BYTE_BYTES

sub BYTE_BYTES : int ()

The number of bytes used to represent a byte value in two's complement binary form, 1.

BYTE_SIZE

sub BYTE_SIZE : int ()

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 ()

A constant holding the minimum value a short can have, -32768.

SHORT_MAX_VALUE

sub SHORT_MAX_VALUE : short ()

A constant holding the maximum value a short can have, 32767.

SHORT_BYTES

sub SHORT_BYTES : int ()

The number of shorts used to represent a short value in two's complement binary form, 2.

SHORT_SIZE

sub SHORT_SIZE : int ()

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 ()

A constant holding the minimum value a int can have, -2147483648.

INT_MAX_VALUE

sub INT_MAX_VALUE : int ()

A constant holding the maximum value a int can have, 2147483647.

INT_BYTES

sub INT_BYTES : int ()

The number of ints used to represent a int value in two's complement binary form, 4.

INT_SIZE

sub INT_SIZE : int ()

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 ()

A constant holding the minimum value a long can have, -9223372036854775808.

LONG_MAX_VALUE

sub LONG_MAX_VALUE : long ()

A constant holding the maximum value a long can have, 9223372036854775807.

LONG_BYTES

sub LONG_BYTES : int ()

The number of longs used to represent a long value in two's complement binary form, 8.

LONG_SIZE

sub LONG_SIZE : int ()

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 ()

A constant holding the minimum value a float can have, -128.

FLOAT_MAX_VALUE

sub FLOAT_MAX_VALUE : float ()

A constant holding the maximum value a float can have, 127.

FLOAT_SIZE

sub FLOAT_SIZE : int ()

The number of bits used to represent a float value in two's complement binary form.

FLOAT_BYTES

sub FLOAT_BYTES : int ()

The number of floats used to represent a float value in two's complement binary form.

DOUBLE_MIN_VALUE

sub DOUBLE_MIN_VALUE : double ()

A constant holding the minimum value a double can have, -128.

DOUBLE_MAX_VALUE

sub DOUBLE_MAX_VALUE : double ()

A constant holding the maximum value a double can have, 127.

DOUBLE_SIZE

sub DOUBLE_SIZE : int ()

The number of bits used to represent a double value in two's complement binary form.

DOUBLE_BYTES

sub DOUBLE_BYTES : int ()

The number of doubles used to represent a double value in two's complement binary form.