A decimal does not support unknown division operation, that is, any number divided by zero or zero divided by any number.
A decimal number is a floating-point value that consists of a sign, a numeric value where each digit in the value ranges from 0 to 9, and a scaling factor that indicates the position of a floating decimal point that separates the integral and fractional parts of the numeric value.
The decimal number can be used for calculations under following criteria:
To perform the division operation in the Expression Field, you can use Double, Integer type. Decimal return type does not support the NaN, Infinity results, because of the above criteria. It can be used only for exact numbers. When you want to perform the division operations while updating the data in the grid, you can use the Double or Integer types.
For example, assume you have a grid with expression columns, Column [A], Column [B] and Column [C]. The Expression column is calculated depending on the values of Column [A] and Column [B]. Exception is thrown when you add the data to the grid for one column, assuming it to be Column [A], it automatically calculates column [B] as zero. Then expression column automatically calculates division operation for Column [A] / 0, that is, column [B], so the result is Infinity.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|