A JSON fragment
"Rate":Infinity, "CarNum2": 0, "DayNum2": 0, "RealDayNum2": 0, "Quota2": 0
We know that there are several numeric types in C #: int, long, decimal, float, and double. For the first three kinds, if except 0, you will be prompted for an expression error (write a number directly) or a DivideByZeroException exception (using a variable), for the next two, except 0 will be positive and negative infinity, unless you are 0.0/0.0 then get Nan (not a number).
Recently, a bug in the previous code, the data through the AJAX asynchronous request can not be bound to the table in the foreground, through the error of Ajax to find the serialized JSON data errors, to locate the JSON fragment of the case, the rate field should be the return number, But here it returns infinity, then changes the background Division code, when the divisor is 0 o'clock returns 0, no longer do the division operation.
C # Infinity (number Infinity)