Methods
is Single Use Parser()
Allows parsers that should only run a single time, and that should not repeatedly re-parse their own output.
This method is optional. Parsers that don't implement it are not considered to be single-use parsers by default.
- Implements:
parse(numeric Value)
Parses an amount containing a thousands, millions or billions token into a number.
If the amount does not match, then null is returned.
Attribute Options:
Option | Description |
---|---|
thousands | the token representing thousands (defaults to K) | millions | the token representing millions (defaults to M) | billions | the token representing billions (defaults to B) |
Parameters:
Name | Type | Description |
---|---|---|
numericValue |
Variant | the amount with tokens |
- Implements:
Returns:
the numeric amount, or null if the value was not recognized.