我可以用" System.Currency"在.NET? [英] Can I use "System.Currency" in .NET?

查看:117
本文介绍了我可以用" System.Currency"在.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用system.currency。它说system.currency无法访问由于其保护级别。什么是货币的替代品。

Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency.

推荐答案

您必须使用十进制数据类型。

小数关键字指​​示128位的数据类型。相比于浮点类型,十进制类型有更多的precision和一个较小的范围内,这使得它适用于金融和货币计算。

The decimal keyword indicates a 128-bit data type. Compared to floating-point types, the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations.

这篇关于我可以用" System.Currency"在.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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