Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to perform a scientific calculation in my vb.net project..
I don't want code for calculator.
I have to perform operation of
x^y
where x & y both are very large integers
but it's showing me overflow in code so I want scientific calculation.
Posted

You can use the type System.Numerics.BigInteger instead:
http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx[^].

Only you should understand that such a simple operation as power function can easily create a result depleting your system memory or fail just because you don't have enough memory. :-)

—SA
 
Share this answer
 
Comments
Mehdi Gholam 17-Feb-13 1:08am    
:)
sachinjadhav1994 18-Feb-13 7:31am    
I am doing project in vb.net 2008 framework 3.5
BigInteger is supported in version 4.5
How can I use that in 3.5??
Sergey Alexandrovich Kryukov 18-Feb-13 9:53am    
Well, you can take the source code from System.Numerics from Mono:
http://www.mono-project.com/
—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Feb-13 1:07am    
I already answered :-) Have my 5.
—SA

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