Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/type-min/docs/types/index.d"

Index

Functions

Functions

Export assignment typemin

  • typemin(dtype: string): number
  • Returns the minimum value of a specified numeric type.

    Notes

    The following numeric types are supported:

    • float64: double-precision floating-point numbers
    • float32: single-precision floating-point numbers
    • float16: half-precision floating-point numbers
    • int32: 32-bit two's complement signed integers
    • uint32: 32-bit unsigned integers
    • int16: 16-bit two's complement signed integers
    • uint16: 16-bit unsigned integers
    • int8: 8-bit two's complement signed integers
    • uint8: 8-bit unsigned integers
    • uint8c: 8-bit unsigned integers clamped to 0-255
    throws

    must provide a recognized numeric type

    Parameters

    • dtype: string

      numeric type

    Returns number

    minimum value

    Example

    var m = typemin( 'int8' );
    // returns -128

    Example

    var m = typemin( 'uint8' );
    // returns 0

    Example

    var m = typemin( 'int16' );
    // returns -32768