Biginteger Pascal中的大整数
自由Pascal中是否存在BigInteger类型? 在Java和C中,存在BigInteger和BigDecimal类型。 如何用Pascal编写与我在Java中编写的代码相同的代码:Biginteger Pascal中的大整数,biginteger,freepascal,Biginteger,Freepascal,自由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) { BigInteg
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);
}
}
您将在和@arva中找到几种不同的解决方案,您推荐哪一种?我还没有使用过,因为我还不需要它们。