问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/4160988/c-sharp-unlimited-significant-decimal-digits-arbitrary-precision-without-java