Calculate large power

abd_barmawi

New member
Joined
Mar 3, 2010
Messages
1
Programming Experience
Beginner
Hi every one

please i want to solution to calculate large power in vb.net like

eg:- 250^500

i have used double type in vb.net but its not enough


and thanks.
 
First at all .. Define your variables
Dim A, B, C As Integer
A = CSng(InputBox("Type value for A"))
B = CSng(InputBox("Type value for B"))
C = A ^ B
MsgBox("The value for the energy is C & Format (C, "####"))
 
Hi every one

please i want to solution to calculate large power in vb.net like

eg:- 250^500

i have used double type in vb.net but its not enough


and thanks.
I don't know if there is a .Net datatype that can hold a number as big as: 9.3326361850321887899008954472382e+1198

First at all .. Define your variables
Dim A, B, C As Integer
A = CSng(InputBox("Type value for A"))
B = CSng(InputBox("Type value for B"))
C = A ^ B
MsgBox("The value for the energy is C & Format (C, "####"))
He means power as in a number raised to a power, not energy consumption.
 
Back
Top