双类型的常数值Epsilon [英] double type's constant value Epsilon

查看:114
本文介绍了双类型的常数值Epsilon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人注意过这个?

Math.Ceiling(double.Epsilon)返回1,这是预期的结果。

Math.Ceiling( double.Epsilon ) returns 1, and this is an expected result.

Math.Ceiling(1d + double.Epsilon)也会返回1,但当然预计会有2个。

Math.Ceiling( 1d + double.Epsilon ) also returns 1, although 2 is expected of course.

推荐答案

你好,

只要.NET Framework出现意外结果,最好的选择是使用IDE右上角的反馈按钮向Microsoft报告。

Anytime there are unexpected results from .NET Framework the best option is to report them to Microsoft using the feedback button on the top right hand corner of the IDE.


这篇关于双类型的常数值Epsilon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆