4

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);
    }
}
4

1 回答 1

2

您将在此 Lazarus 论坛主题此处找到一些不同的解决方案。

于 2013-08-05T08:46:11.760 回答