@ac-essentials/misc-util
    Preparing search index...

    Type Alias ToFixedLengthOptions

    type ToFixedLengthOptions = {
        fixedFractionDigits?: boolean;
        maxFractionDigits?: number;
        roundingMethod?: RoundingMethod;
    }
    Index

    Properties

    fixedFractionDigits?: boolean

    Whether to always include the maximum number of fraction digits, even if it means adding trailing zeros. Default is false.

    If false, the function will try to reduce the number of fraction digits to fit the specified length.

    maxFractionDigits?: number

    Maximum number of fraction digits to include in the output. Default is 0.

    roundingMethod?: RoundingMethod

    Rounding method to use when rounding the number. Default is "round".