Geeks With Blogs
Greg Young Greg.ToString()

MSDN Question:

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

... 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. discusses this further. It also contins some Zip classes which are quite useful.


Posted on Monday, May 1, 2006 10:20 AM Tips and Tricks | Back to top

Comments on this post: BigInteger/BigDecimal

# re: BigInteger/BigDecimal
Requesting 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).
Left by Marc Brooks on May 01, 2006 11:31 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
Interesting library I will have to play with it a bit!
Left by Greg Young on May 01, 2006 11:35 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
BigInteger for now, BigDecimal mayb later...
Left by Check this out.... on Jan 21, 2007 12:33 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
NET apps simply by referencing the J# assembly vjslib.dll.
Left by tiffany on Aug 01, 2009 8:11 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
can someone please tell me what this number would is, i got it from a friend that thinks hes a know it all in math and i dont know the name of a number with this many zeros in it. 10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 ok, its the number 10 followd by 26 sets of zeros in groups of 3's so there is 78 zero all together succeeding the number 10. if anyone can help me with this please email me the answer at (
Left by logic on May 05, 2010 9:08 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
So we can exclude all BigDecimal / BigInteger on range to make it consistent and let the issue arise at developement time (at least unit testing)
or we can allow BigDecimal / BigInteger and raise an exception if we are above the limit cases happends where min or max is unset, such an issue will arise most likely in production only... I'm not a big fan of that.

Free Mcx Tips Trial
Left by Crude Oil Tips on Jan 12, 2011 5:56 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
Thank you for sharing that little wonderful connection with us. Now I love the movie even more!Very nice and helpful information has been given in this article. I like the way you explain the things. Keep posting.
Thank you,
Mcx Silver Trading Tips
Left by free mcx gold tips on Mar 14, 2011 6:02 AM

# re: BigInteger/BigDecimal
Requesting Gravatar...
How would you convert a 'BigDecimal' number to a 'BigInteger' ? I cant seem
to be able to do this.
Left by Best Nifty Tips on May 12, 2011 3:47 AM

Your comment:
 (will show your gravatar)

Copyright © Greg Young | Powered by: