Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to divide and multiply very big numbers in c#?

I heard something about BigInteger, but my numbers are about 300!
I don't know BigInteger support it or not.

I'm a beginner, please type some sample code

Thanks.
Good luck:)
Posted
Updated 22-Mar-17 11:04am
v2
Comments
André Kraak 6-Oct-11 17:27pm    
Edited question:
Added code tags
Removed unnecessary tags
Formatted text/code
Spelling/Grammar

1 solution

"The BigInteger type is an immutable type that represents an arbitrarily large integer whose value in theory has no upper or lower bounds" -- http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx

It should be limited only by the available memory. With a 64-bit system that can page memory to the hard drive, you should not have any problems.
 
Share this answer
 
Comments
Espen Harlinn 6-Oct-11 17:29pm    
Right :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900