开发者

C# unlimited significant decimal digits (arbitrary precision) without java [duplicate]

This question already has answers here: Clos开发者_JAVA技巧ed 12 years ago.

Possible Duplicate:

what is the equivalent for java class : BigDecimal in c#

I know in this post: Arbitrary precision decimals in C#? says to use java.math.BigDecimal, but I don't have J# installed. How would I achieve arbitrary precision in C#? I was thinking of using binary strings but I may run into some trouble when multiplying the two.


See What is the equivalent of the Java BigDecimal class in C#?

You could create your own BigDecimal that used BigInteger under the covers and kept track of where the decimal point would need to be.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜