• Returns a float value from the string value, or undefined if the value cannot be converted

    Parameters

    • Optionalvalue: string

      the string value to check

    Returns number | undefined

    a float value from the string value, or undefined if the value cannot be converted

    toFloat('1.0');    // 1.0