Тема: Арифметика в VBA
Как такое может быть?????????????
Private Sub CommandButton1_Click()
Dim X(11) As Double
Dim i As Integer
Dim Count As Double
X(0) = 8.888
X(1) = 8.888
X(2) = 8.888
X(3) = 8.888
X(4) = 8.888
X(5) = 8.888
X(6) = 8.888
X(7) = 8.888
X(8) = 8.888
X(9) = 8.888
X(10) = 8.888
X(11) = 2.232
Count = 0
For i = 0 To 11
Count = Count + X(i)
Next i
If Count <> 100# Then MsgBox ("Как не равно 100 ?????")
End Sub