Java: Multiply Long with Double not gives exact result

后端 未结 0 1622
遇见更好的自我
遇见更好的自我 2021-01-17 14:28

When i multiply Long with Double then i get such a big answer (2402.3999999999996)

where i was expecting 2,402.4

public class Testy {
    public static         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题