什么是C#中的Java的BigDecimal类的相同呢? [英] What is the equivalent of the Java BigDecimal class in C#?

查看:120
本文介绍了什么是C#中的Java的BigDecimal类的相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的BigDecimal 是有很多好处处理的大数字的的java.math 包中的类一定的规模。有没有在C#中使用此功能等价类或数据类型。

BigDecimal is a class in the java.math package that has a lot of benefits for handling big numbers of a certain scale. Is there an equivalent class or data type in c# with this feature.

推荐答案

C#只有的BigInteger 建造它(.NET Framework中4)。

C# only has BigInteger built it (in .NET framework 4).

小数够precision你的任务是什么?它可以在范围内保存值±一个128位的数字为1.0×10 -28 到±7.9×10 28

Is decimal enough precision for your task? It's a 128-bit number that can hold values in the range ±1.0 × 10−28 to ±7.9 × 1028.

这篇关于什么是C#中的Java的BigDecimal类的相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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