帕斯卡中的大整数

标签 biginteger freepascal

Free Pascal 中是否存在 BigInteger 类型?
在 Java 和 C# 中存在 BigInteger 和 BigDecimal 类型。
如何在 Pascal 中编写我在下面用 Java 编写的相同代码:

package bigint;
import java.math.BigInteger;
/** 
 * @author Istvan
 */
public class bigint {

    public static void main(String[] args) {
        BigInteger a = new BigInteger("12345678913546876542545054683656469434");
        BigInteger b = new BigInteger("983435472457463464685743648468650354684046846841");

        BigInteger c = a.multiply(b);
        System.out.println("c="+c);
    }
}

最佳答案

您会在 中找到一些不同的解决方案。 this Lazarus forum thread here .

关于帕斯卡中的大整数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18048142/

相关文章:

freepascal - TRichMemo - LoadRichText 不起作用

java - 在 N 中找到第一个非零数!在 java

c++ - 大整数类的位操作?

c++ - 使用 Free Pascal 时,针对 Linux x64 下的 indigo cheminformatics 包的静态链接提示对 __dso_handle 的 undefined reference

pascal - 当我在 Pascal 中使用单位 Crt 时,控制台 CP 无法更改

linux - 计算常量时出现范围检查错误

java - 为什么 java 的 BigInteger gcd 和 modInverse 这么慢?

c# - 将字符串转换为 BigInteger

c++ - 无限大小的整数?

arrays - 创建随机二维数组 (4x4) FreePascal