Preparing search index...

    Function parseQuantity

    • Canonical quantity-string parser used wherever raw text becomes a stored quantity. Trims, normalizes every decimal separator to a dot via normalizeDecimalSeparators (which round-trips whatever formatDecimalForDisplay rendered), runs parseFloat (so leading numeric prefixes are kept and OCR ranges like "1à3" collapse to "1"), and returns '' for non-numeric input.

      Parameters

      • raw: string | undefined

      Returns string