我需要能够判断整数是一个整数还是有小数.因此13将是整数,23.23将是小数.
所以喜欢;
If 13 is a whole number then msgBox("It's a whole number,with no decimals!") else msgBox("It has a decimal.") end if
If x = Int(x) Then 'x is an Integer!' Else 'x is not an Integer!' End If