开发者

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

开发者 https://www.devze.com 2023-01-24 11:48 出处:网络
This question already has answers here: Clos开发者_JAVA技巧ed 12 years ago. Possible Duplicate: what is the equivalent for java class : BigDecimal in c#
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

精彩评论

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