Decimal Type

The Decimal type is used for numeric data that includes decimal points. It includes attributes to define the range and default value for the decimal numbers.

Attributes for Decimal Properties

  • Min Value

    • Min Value specifies the smallest number that can be entered for the property, including decimal points. This attribute ensures that entries are not less than the specified minimum value.

    • Validation Rules:

      • The Min Value should be a valid decimal number.

  • Max Value

    • Max Value determines the largest number that can be entered for the property, including decimal points. This attribute ensures that entries do not exceed the specified maximum value.

    • Validation Rules:

      • The Max Value should be a valid decimal number.

      • The Max Value must be greater than or equal to the Min Value.

  • Default Value

    • Default Value sets a predefined decimal number for the property when no other value is provided. This value must be within the Min Value and Max Value.

    • Validation Rules:

      • If the Min Value is specified, the Default Value must be greater than or equal to the Min Value.

      • If the Max Value is specified, the Default Value must be less than or equal to the Max Value.

      • If both Min Value and Max Value are specified, the Default Value must fall between these two values.

      • If neither Min Value nor Max Value is specified, the Default Value should be a valid decimal.

Last updated