十进制和十进制之间的区别 [英] Difference between Decimal and decimal

查看:194
本文介绍了十进制和十进制之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以给我解释一下小数和C#十进制之间的差异,将是巨大的。

If someone could explain to me the difference between Decimal and decimal in C# that would be great.

在一个更一般的时尚,是什么较低的区别 - 案例结构类似十进制,整型,字符串和大写类十进制的Int32,字符串。

In a more general fashion, what is the difference between the lower-case structs like decimal, int, string and the upper case classes Decimal, Int32, String.

是唯一的区别是,大写类也包裹函数(如十进制.Divide())?

Is the only difference that the upper case classes also wrap functions (like Decimal.Divide())?

推荐答案

他们是相同的。类型十进制是System.Decimal的别名。

They are the same. The type decimal is an alias for System.Decimal.

所以基本上十进制是一回事小数。这是下降到用户的偏好使用哪一个,但大多数倾向于使用int和string,因为它们更容易输入和C ++程序员之间更加熟悉。

So basically decimal is the same thing as Decimal. It's down to user's preference which one to use but most prefer to use int and string as they are easier to type and more familiar among C++ programmers.

这篇关于十进制和十进制之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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