Checks if a string is a decimal number.

  • Parameters

    • value: string

      The string to validate.

    • options: IsDecimalOptions = {}

      Options for decimal validation.

    Returns boolean

    true if the string is a valid decimal, false otherwise. Examples of valid decimals: "0.1", "0.3", "1.1", "1.00003", "4.0".