Click here to Skip to main content
Sign Up to vote bad
good
See more: VB.NET
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 16 Feb '13 - 18:56


2 solutions

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. Smile | :)
 
—SA
  Permalink  
Comments
Mehdi Gholam - 17 Feb '13 - 1:08
:)
sachinjadhav1994 - 18 Feb '13 - 7:31
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:53
Well, you can take the source code from System.Numerics from Mono: http://www.mono-project.com/ —SA
  Permalink  
Comments
Sergey Alexandrovich Kryukov - 17 Feb '13 - 1:07
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 211
1 Richard MacCutchan 145
2 Sergey Alexandrovich Kryukov 134
3 Tadit Dash 124
4 Santhosh G_ 120
0 Sergey Alexandrovich Kryukov 10,338
1 OriginalGriff 7,965
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 17 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid