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 644
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.