Interface NumericQuantityOptions

interface NumericQuantityOptions {
    allowTrailingInvalid?: boolean;
    romanNumerals?: boolean;
    round?: number | false;
}

Properties

allowTrailingInvalid?: boolean

Allow and ignore trailing invalid characters à la parseFloat.

false
romanNumerals?: boolean

Attempt to parse Roman numerals if Arabic numeral parsing fails.

false
round?: number | false

Round the result to this many decimal places. Defaults to 3; must be greater than or equal to zero.

3