Floating point arithmetic is too reliable

前端 未结 9 1408
無奈伤痛
無奈伤痛 2021-01-16 09:45

I understand that floating point arithmetic as performed in modern computer systems is not always consistent with real arithmetic. I am trying to contrive a small C# progra

9条回答
  •  情书的邮戳
    2021-01-16 10:11

    Try making it so the decimal is not .5.

    Take a look at this article here

    http://floating-point-gui.de/

提交回复
热议问题