API Docs
    Preparing search index...

    Function toNumber

    • Internal

      Converts a string to a number (decimal-integer or decimal-floating-point). Handles the full range of HLS numeric formats.

      Parameters

      • str: string

        The numeric string (e.g., "10.5")

      Returns number

      The parsed number

      If the string is not a valid number