Perl对长整数的处理时怎么样的啊?
时间:2011-04-30
来源:互联网
原因: 数据库中sqlite有一个列是Integer,里面存储的是18位的证书
用perl链接数据库以后的出来的是一个15位的用科学计数法表示的数
怎么获得正确的数呢?
多谢诸位大侠
用perl链接数据库以后的出来的是一个15位的用科学计数法表示的数
怎么获得正确的数呢?
多谢诸位大侠
作者: xzcg 发布时间: 2011-04-30
本帖最后由 longbow0 于 2011-04-30 18:50 编辑
use bigint;
不过根据 perldoc DBI,
Most data is returned to the Perl script as strings. (Null values are returned as undef.) This allows arbitrary precision numeric data to be handled without loss of accuracy. Beware that Perl may not preserve the same accuracy when the string is used as a number.
最好是提供具体代码。
use bigint;
不过根据 perldoc DBI,
Most data is returned to the Perl script as strings. (Null values are returned as undef.) This allows arbitrary precision numeric data to be handled without loss of accuracy. Beware that Perl may not preserve the same accuracy when the string is used as a number.
最好是提供具体代码。
作者: longbow0 发布时间: 2011-04-30
转换成字符串吗?
作者: 2gua 发布时间: 2011-04-30
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28