In Java, how can I foresee round-off errors if the rounding is inconsistent? e.g. 0.03 * 100 = 10.029999 but 10.05 * 100 = 10.0500001? [duplicate]

前端 未结 0 1598
轻奢々
轻奢々 2021-01-28 12:09
热议问题