📖 These are the docs for an older version. View the latest BigDecimal.js documentation →
bigdecimal.js
    Preparing search index...

    Interface BigDecimalConstructor

    Type of the Big constructor function, which builds a BigDecimal and can be invoked with or without new.

    interface BigDecimalConstructor {
        new BigDecimalConstructor(
            n: string | number | bigint | BigDecimal,
            scale?: number,
            mc?: MathContext,
        ): BigDecimal;
        (
            n: string | number | bigint | BigDecimal,
            scale?: number,
            mc?: MathContext,
        ): BigDecimal;
    }
    Index