numeric-quantity - v3.3.3
    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. Input is expected to be a string, but will be coerced to string if necessary.

      Parameters

      • quantity: unknown

      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. Input is expected to be a string, but will be coerced to string if necessary.

      Type Parameters

      Parameters

      • quantity: unknown
      • options: T

      Returns NumericQuantityReturnType<T>