kaven-basic - v6.0.0
    Preparing search index...

    Function GetLeadingNumber

    • Extracts the leading number from the beginning of a string.

      Parameters

      • str: string

        The input string to extract the number from.

      • float: boolean = false

        If true, extracts a floating-point number; otherwise, extracts an integer. Defaults to false.

      Returns string

      The leading number as a string, or an empty string if no leading number is found.

      3.0.0

      2021-12-11