5 delphi bit-manipulation data-structures
可能重复:
Pascal(Delphi)中的大数字
我试图将66位值转换为十进制.
我注意到int64中delphi中最大的数据类型只能允许64位数据.这种转换的delphi代码示例是
result := strtoInt64('FFFFABCDEFF123456');
Run Code Online (Sandbox Code Playgroud)
请告知如何使用delphi而不返回范围错误.
穆达
Delphi 中的十进制称为currency它使用 8 个字节 = 64 位。
您必须创建自己的类型,请参阅这篇文章:http://www.delphi3000.com/articles/article_3772.asp
它描述了如何创建 128 位整数。
这是 Delphi 的 bignum 库:http://cc.embarcadero.com/item/27789
另请参阅这个问题:Pascal 中的大数字(Delphi)