asp 溢出: 'cint'

来源:百度知道 编辑:UC知道 时间:2024/05/24 10:17:35
这是超出了int的取值范围
有没有比int取值范围大的???最好和int类型差不多的
CDouble,CSingle 都报错 说类型不匹配
这是源代码:
else if rs("user")="002" then '控制用户002扣量-总量
response.write CSingle(CSingle(rs1(0))*0.7)
response.write("(70%)")

CDouble,CSingle

clng

用 Isnumeric()先判断下是不是数字吧,非数字转换肯定提示类型不匹配呀
tmp = rs1(0)&""
if isnumeric(tmp) then

response.write(CSingle(tmp)*0.7) & ""
response.write("(70%)")
end if

clng