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/