i want to know how it works because i am making progamme in ocaml to calculate big integers without using any directories........pls help .....give me idea....how i can add two big integer in two different list or array????????????
A BigInteger doesn't use any directories; I don't know who told you that. The
following example calculates 1000! (factorial). See how simple it is:
-
BigInteger fac= BigInteger.ONE;
-
for (int i= 2; i <= 1000; i++)
-
fac= fac.multiply(new BigInteger(""+i));
-
System.out.println("1000! = "+fac);
-
Read the API documentation for this class and see how one of its constructors
can create a BigInteger given some other representation of such a number.
kind regards,
Jos