Interface AbbreviateOptions

Options for formatting the abbreviated number's suffix.

interface AbbreviateOptions {
    case?: "lower" | "upper";
    rounding?: "up" | "down" | "none";
}

Properties

Properties

case?: "lower" | "upper"

Specifies the case of the suffix. Accepts 'lower' for lowercase or 'upper' for uppercase. If not provided, the suffix defaults to uppercase.

rounding?: "up" | "down" | "none"

Specifies the rounding method. Accepts 'up' for rounding up, 'down' for rounding down, 'none' for no rounding. If not provided, the default is 'none'.

Generated using TypeDoc