以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 请教arithmetic operation resulted in an overflow如何处理 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=18255) |
-- 作者:ajim -- 发布时间:2012/4/7 14:02:00 -- 请教arithmetic operation resulted in an overflow如何处理 我想求5000元一共能买多少数量股票 但是没办法求整数。每次遇到除法就出现arithmetic operation resulted in an overflow Convert(5000/Convert(股价 , \'System.Int64\'), \'System.Int64\') 代码如上。请问遇到这种问题该如何取整数??? |
-- 作者:czy -- 发布时间:2012/4/7 21:33:00 -- 将表达式列设置为整数型,表达式直接 5000/股价 就可以了吧。 |