Big numbers with fraction support

Posted by dutt on Stack Overflow See other posts from Stack Overflow or by dutt
Published on 2010-03-28T18:15:08Z Indexed on 2010/03/28 18:23 UTC
Read the original article Hit count: 152

Filed under:
|

I need a c# number something that can handle very large numbers but also fraction support, I looked at System.Numberics.BigInteger coming in .NET 4.0 but I can't get it to work with fractions.

something i = 2;
something j = 5;
something k = i/j; //should be 0.4

when i tried

 BigInteger i = 2;
 BigInteger j = 5;
 double d = (double)(i/j); //d is 0.0

Does anybody know such a library?

© Stack Overflow or respective owner

Related posts about c#

Related posts about numeric