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

Last Updated: 20 June, 2023