numeric-quantity - v3.2.1
    Preparing search index...

    Function numericQuantity

    • Converts a string to a number, like an enhanced version of parseFloat.

      The string can include mixed numbers, vulgar fractions, or Roman numerals.

      Parameters

      • quantity: string | number

      Returns number

    • Converts a string to a number, like an enhanced version of parseFloat.

      The string can include mixed numbers, vulgar fractions, or Roman numerals.

      Type Parameters

      Parameters

      • quantity: string | number
      • options: T

      Returns NumericQuantityReturnType<T>

    • Converts a string to a number, like an enhanced version of parseFloat.

      The string can include mixed numbers, vulgar fractions, or Roman numerals.

      Parameters

      Returns number