.NET - 为什么会出现在C#中没有固定的点数值数据类型? [英] .NET - Why is there no fixed point numeric data type in C#?
本文介绍了.NET - 为什么会出现在C#中没有固定的点数值数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好像有将是一个固定点数据类型一吨的用途。为什么会出现没有之一。NET?
It seems like there would be a ton of uses for a fixed point data type. Why is there not one in .NET?
注:据我了解,我们可以创造我们自己的类/结构,以满足我们的固定点的目的和需求。这不是我的问题。我想知道为什么MS决定不列入定点数字数据类型。
Note: I understand we can create our own classes/structs to suit our fixed point purposes and needs. That's not my question. I want to know WHY MS decided not to include a fixed point numeric data type.
推荐答案
十进制
(基数为10浮点)被认为是足够好了。
Decimal
(base-10 floating point) was deemed to be good enough.
这篇关于.NET - 为什么会出现在C#中没有固定的点数值数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文