Blog Stats
  • Posts - 99
  • Articles - 5
  • Comments - 93
  • Trackbacks - 106

 

BigInteger/BigDecimal

MSDN Question:

Specifically, I need something that will let me represent decimals with a
large amount of precision... Similar to this library:

http://www.codeproject.com/csharp/biginteger.asp

... but I need decimal support.

If worse comes to worse I'm thinking I can use this and just multiply out
the numbers as necessary by a fixed large number
(10000000000000000000000000000000000000000000000000000000000000000000000 or
something similar), but that really feels like an incredibly dirty hack...
So, any better ideas would be appreciated!


The J# re-distributables contain very well tested implementations of BigInteger and BigDecimal that you can use directly in your .NET apps simply by referencing the J# assembly vjslib.dll. http://download.microsoft.com/download/2/e/9/2e9bde04-3af1-4814-9f1e-733f732369a3/NETMatters0512.exe discusses this further. It also contins some Zip classes which are quite useful.

 


Feedback

# re: BigInteger/BigDecimal

Gravatar And if you need exact fraction support, check out this project (I'm not the author, but I made VERY extensive changes, which he posted).

http://www.codeproject.com/csharp/fractiion.asp 5/1/2006 11:31 AM | Marc Brooks

# re: BigInteger/BigDecimal

Gravatar Interesting library I will have to play with it a bit! 5/1/2006 11:35 AM | Greg Young

# re: BigInteger/BigDecimal

Gravatar BigInteger for now, BigDecimal mayb later... 1/21/2007 12:33 AM | Check this out....

# re: BigInteger/BigDecimal

Gravatar NET apps simply by referencing the J# assembly vjslib.dll. 8/1/2009 8:11 AM | tiffany

Post a comment





 

 

 

Copyright © Greg Young