EagleTempest
Technical User
VB6
I get an overflow error when calculating dblArea:
Shouldn't the Double datatype handle the calculated value of 1056.20466?
I get an overflow error when calculating dblArea:
Code:
Private Sub Form_Load()
Dim dblArea As Double
Dim intWidth As Integer
Dim intHeight As Integer
intWidth = 559
intHeight = 1219
[b]dblArea = CDbl(intWidth * intHeight / 645.16)[/b]
End Sub