Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toFinite

Index

Functions Lang

Lang Functions

  • default(value: any): number
  • Converts value to a finite number.

    since

    5.5.0

    example
    toFinite(3.2)
    // => 3.2

    toFinite(Number.MIN_VALUE)
    // => 5e-324

    toFinite(Infinity)
    // => 1.7976931348623157e+308

    toFinite('3.2')
    // => 3.2

    Parameters

    • value: any

      The value to convert.

    Returns number

    Returns the converted number.