Possible Loss of Fraction

后端 未结 5 1607
慢半拍i
慢半拍i 2020-12-02 14:12

Forgive me if this is a naïve question, however I am at a loss today.

I have a simple division calculation such as follows:

double returnValue = (myO         


        
5条回答
  •  生来不讨喜
    2020-12-02 14:28

    An integer divided by an integer will return your an integer. Cast either Value to a double or divide by 10.0.

提交回复
热议问题