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

1

3

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.

Apolitical answered 12/11, 2010 at 1:55 Comment(0)
P
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.

Poteet answered 12/11, 2010 at 2:0 Comment(1)
FYI: You have to add a reference to System.NumericsEntrain

© 2022 - 2024 — McMap. All rights reserved.