Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
I want to perform a scientific calculation in my project..
I don't want code for calculator.
I have to perform operation of
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:56pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use the type System.Numerics.BigInteger instead:[^].
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 | :)
Mehdi Gholam at 17-Feb-13 1:08am
sachinjadhav1994 at 18-Feb-13 7:31am
I am doing project in 2008 framework 3.5
BigInteger is supported in version 4.5
How can I use that in 3.5??
Sergey Alexandrovich Kryukov at 18-Feb-13 9:53am
Well, you can take the source code from System.Numerics from Mono:
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Sergey Alexandrovich Kryukov at 17-Feb-13 1:07am
I already answered :-) Have my 5.

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

  Print Answers RSS
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 165
2 jlopez788 109
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,589
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505

Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 17 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100