.NET - 为什么会出现在C#中没有固定的点数值数据类型?出现在、数值、数据类型、NET

2023-09-04 00:57:38 作者:指尖流动的风 摇曳中

好像有将是一个固定点数据类型一吨的用途。为什么会出现没有之一。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.

 
精彩推荐
图片推荐