vb里边为什么1 MOD 0.5 会报除数为零
程序是这样的
If Polish1Depth Mod Polish1Feed = 0 Then
layernum = Polish1Depth / Polish1Feed
Polish1Layer = Polish1Depth / layernum
Else
layernum = Polish1Depth / GrindFeed + 1
Polish1Layer = Polish1Depth / layern
End If
报错的时候显示Polish1Depth=1,Polish1Feed=.5
1 mod 0.5不应该是商2余0吗?为什么会报错除数为零?