I am so calculated when calculating the work order.
Double Doublezfl = (longzfsl == 0 || longsl == 0)? 0: longzfsl * 100 / longsl; the result found that the calculated result did not have a fractional part, Best can't help. It turned out to be due to the completed data all the LONG type data, resulting in the conversion of the calculation results into integers during the calculation process. (Although you gave the result to a double number, there is no decimal part before giving it to: double doublezfl = (longzfsl == 0 || longsl == 0)? 0: longzfsl * 100.0 / longsl (Change 100 is 100.0 for conversion) Similar conversion has String Strnumber = 123456 "" "; converted to a string.