Foxtable(狐表)用户栏目专家坐堂 → 请教arithmetic operation resulted in an overflow如何处理


  共有9568人关注过本帖树形打印复制链接

主题:请教arithmetic operation resulted in an overflow如何处理

帅哥哟,离线,有人找我吗?
ajim
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:200 积分:1881 威望:0 精华:0 注册:2011/11/24 15:19:00
请教arithmetic operation resulted in an overflow如何处理  发帖心情 Post By:2012/4/7 14:02:00 [显示全部帖子]

我想求5000元一共能买多少数量股piao 但是没办法求整数。每次遇到除法就出现arithmetic operation resulted in an overflow

Convert(5000/Convert(股价 , 'System.Int64'), 'System.Int64')

代码如上。请问遇到这种问题该如何取整数???


 回到顶部