The day has come, where 9 is than 9
I was getting red in the face with this thing, trying to figure out
why 9 wasn't equal to 9. Took me a while to figure it out, but I finally found out why. You have a look, it'll make you go nuts if you don't see it at first :p
Code:
Private Sub Command1_Click()
'Dim your variables
Dim i
Dim x
'Dim x. Count it with a calculator if you want, but x = 9.
x = 387420489 ^ (1 / 9)
'Finally, do a loop from 1 to 9. Once x = i (Or i = 9), it'll tell you it's equal. But it never does. Aparently, 9 is actually smaller than 9!
For i = 1 To 9
If x < i Then
MsgBox "Smaller"
ElseIf x = i Then
MsgBox "Equal"
Else
MsgBox "Bigger"
End If
Next i
End Sub
Have fun :D