Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment safeintmin

  • safeintmin(dtype: string): number
  • Returns the minimum safe integer capable of being represented by a numeric real type.

    Notes

    The following numeric real types are supported:

    • float64: double-precision floating-point numbers
    • float32: single-precision floating-point numbers
    • float16: half-precision floating-point numbers
    throws

    must provide a recognized numeric type

    Parameters

    • dtype: string

      numeric type

    Returns number

    minimum safe integer

    Example

    var m = safeintmin( 'float64' );
    // returns -9007199254740991

    Example

    var m = safeintmin( 'float16' );
    // returns -2047

    Example

    var m = safeintmin( 'float32' );
    // returns -16777215