interface DecimalNumberOptions {
    precision?: number;
    scale?: number;
    unsigned?: boolean;
    zerofill?: boolean;

Hierarchy (view full)


precision?: number

Total number of digits.

DecimalNumberOptions#scale must be specified if precision is specified.

scale?: number

Count of decimal digits in the fractional part.

DecimalNumberOptions#precision must be specified if scale is specified.

unsigned?: boolean

Is unsigned?

zerofill?: boolean

Pad the value with zeros to the specified length.

Currently useless for types that are returned as JS BigInts or JS Numbers.