Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/real-max/docs/types/index.d"

Index

Functions

Functions

Export assignment realmax

  • realmax(dtype: string): number
  • Returns the maximum finite value 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

    maximum finite value

    Example

    var m = realmax( 'float64' );
    // returns 1.7976931348623157e+308

    Example

    var m = realmax( 'float16' );
    // returns 65504.0

    Example

    var m = realmax( 'float32' );
    // returns 3.4028234663852886e+38