Foxtable(狐表)用户栏目专家坐堂 → 算术运算导致溢出


  共有1942人关注过本帖平板打印复制链接

主题:算术运算导致溢出

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


加好友 发短信
等级:幼狐 帖子:101 积分:932 威望:0 精华:0 注册:2018/1/23 10:52:00
算术运算导致溢出  发帖心情 Post By:2018/5/21 16:32:00 [只看该作者]

Dim shenling As WinForm.NumericComboBox = e.Form.Controls("NumericComboBox1")'申领数量
Dim slsl As Double '申领数量
slsl = Round2((shenling.Value),2)
Dim rnew As DataRow
rnew = DataTables("填写料单").AddNew()
rnew("in_number") = slsl
rnew("k_number") = slsl
rnew.Save()

执行后,后台数据库的in_number、k_number字段都变成了4.70202E17,再打开程序调用这个表时就提示“算术运算导致溢出"

 回到顶部