Let me start by thanking you all in advance for your assistance and patience with me. I've spent the past several hours combing through many forum posts trying to find an answer to this question but have, so far, been unsuccessful.
I am writing an app using Visual Basic 2008 Express Edition and stumbling into a problem. I need to able to define two different variable (see the example below) and then calculate setting the second variable as the exponent of the first variable.
A few examples of what I've tried...
Code:
Dim value1 as Integer = 445
Dim value2 as Integer = 1980
Dim value3 as Integer = Math.Pow(445, 1980)
and
Code:
Dim value1 as Integer = 445
Dim value2 as Integer = 1980
Dim value3 as Integer = value1 ^ value2
etc.
However, no matter what I seem to do, I keep getting infinity returned as the value. I've tried using Integer, int64, double, etc. for the various dims, but still no luck.
I'm new to VB and could really use/would really appreciate any assistance that could be provided.
Cheers!
Andrew