Interface IsDecimalOptions

Options for decimal validation.

interface IsDecimalOptions {
    decimalDigits?: string;
    forceDecimal?: boolean;
}

Properties

decimalDigits?: string

Specifies the number of digits after the decimal point. Can be a range (e.g., "1,3"), a specific value (e.g., "3"), or a minimum value (e.g., "1,"). Defaults to "1,".

forceDecimal?: boolean

Requires a decimal point if true. Defaults to false.