本文介绍了C#Math.Round的技术分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的两天里,我一直在阅读有关十进制和双倍关于四舍五入的阅读。



我想知道的是有谁知道Math.Round如何在封面下实际运作?就像它转换为位然后对这些位进行舍入还是先进行舍入等?它是导入还是执行任何进行舍入的本机代码?等等



如果有人有任何技术白皮书或链接,那就太棒了!



谢谢你

Over the last 2 days I have been doing a LOT of reading about decimal vs. double about rounding.

What I would like to know is does anyone know how the Math.Round actually works under the covers? Like does it do a conversion to bits then do rounding on those bits or does it round first etc? Does it import or execute any native code that does the rounding ? etc

If anyone has any technical whitepapers or links, that would be awesome!

Thank u

推荐答案


这篇关于C#Math.Round的技术分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 00:39