为什么这么算结果是0,而不是我想要的运算结果呢?Private Sub Form_Click()a! = 5#b! = 2.5c! = 7.8Dim y As Doubley = (pi * a * b) / (a + b * c)Print yEnd Sub
2 回答
UYOU
TA贡献1878条经验 获得超4个赞
'没有,只能自定义常量
Const pi!=3.151592628
Private Sub Form_Click()
a! = 5#
b! = 2.5
c! = 7.8
Dim y As Double
y = (pi * a * b) / (a + b * c)
Print y
End Sub
- 2 回答
- 0 关注
- 1235 浏览
添加回答
举报
0/150
提交
取消