numeric-quantity - v2.1.0
    Preparing search index...

    Interface NumericQuantityOptions

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

    Properties

    allowTrailingInvalid?: boolean

    Allow and ignore trailing invalid characters à la parseFloat.

    false
    
    bigIntOnOverflow?: boolean

    Generates a bigint value if the string represents a valid integer too large for the number type.

    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