NAME

minval - minimum representable value for a type

SYNOPSIS

res = type.minval()

DESCRIPTION

If type is a numeric type (like Int, Float, etc.), minval returns the smallest (most negative) finite value that can be represented by that type.

If type is an array of types, minval returns an array containing the minimum value for each type in the input.

RETURN VALUE

Returns the minimum representable value(s) for the given type(s).

ERRORS

ArgCheck: Thrown if the number of arguments is not 0.
TypeCheck: Thrown if the argument is not a type or an array of types.
RangeCheck: Thrown if the type is not numeric or does not have a well-defined minimum value.

EXAMPLE

    Short.minval()
-32768

    Float.minval()
-3.40282e+38

    [Byte, UByte].minval()
-128 0

SEE ALSO

maxval
typeof