API Reference > imodeljs-Quantity > Quantity > Parser > parseQuantityString parseQuantityString MethodStatic Method to generate a Quantity given a string that represents a quantity value. parseQuantityString(inString: string, parserSpec: ParserSpec): QuantityParseResult Parameter Type Description inString string A string that contains text represent a quantity. parserSpec ParserSpec unit label if not explicitly defined by user. Must have matching entry in supplied array of unitsConversions. Returns - QuantityParseResult Defined in quantity/src/Parser.ts Line 544 Last Updated: 12 June, 2024