DAME IT !!! This error Yeer good pit ah! (Double) (b / c) which is a double turn int rhythm.
For example: c = 1000, b = 100; (double) (b / c) is looking at the whole formula is converted into a double, but in fact the first turn and then turned into a double int. When converted to an int value of 0, 0 is how the double switch, not less than one decimal ~
Reproduced in: https: //www.cnblogs.com/xu-thinking/p/3435911.html