Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 487
ninjaneer Avatar asked Nov 20 '25 06:11

ninjaneer


1 Answers

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.

like image 196
Jeff Moser Avatar answered Nov 21 '25 20:11

Jeff Moser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!