accounting-js - v2.0.3
    Preparing search index...

    Type Alias Settings

    The library's settings configuration interface.

    type Settings = {
        decimal?: string;
        fallback?: number;
        format?: string | CurrencyFormat;
        grouping?: number;
        precision?: number;
        round?: number;
        stripZeros?: boolean;
        symbol?: string;
        thousand?: string;
    }
    Index

    Properties

    decimal?: string

    Decimal point separator

    fallback?: number

    Value returned on unformat() failure

    format?: string | CurrencyFormat

    Controls output: %s = symbol, %v = value (can be object, see docs)

    grouping?: number

    Digit grouping (not implemented yet)

    precision?: number

    Number of decimal places to round the amount to

    round?: number

    Decide round direction.

    stripZeros?: boolean

    Strip insignificant zeros from decimal part

    symbol?: string

    Currency symbol

    thousand?: string

    Thousands separator