OptionalallowOptionalallowAllow and ignore trailing invalid characters à la parseFloat.
OptionalbigGenerates a bigint value if the string represents
a valid integer too large for the number type.
OptionaldecimalSpecifies which character ("." or ",") to treat as the decimal separator.
OptionalpercentageParse percentage strings by stripping the % suffix.
'decimal' or true: "50%" → 0.5 (divide by 100)'number': "50%" → 50 (strip %, keep value)false or omitted: "50%" → NaN (default behavior)OptionalromanAttempt to parse Roman numerals if Arabic numeral parsing fails.
OptionalroundRound the result to this many decimal places. Defaults to 3; must be greater than or equal to zero.
OptionalverboseReturn a verbose result object with additional parsing metadata.
Allow and strip currency symbols (Unicode
\p{Sc}category) from the start and/or end of the string.