[501] in java-interest

home help back first fref pref prev next nref lref last post

Re: BigInteger class out there?

daemon@ATHENA.MIT.EDU (Chuck McManis)
Mon Jun 26 15:22:53 1995

Date: Mon, 26 Jun 1995 11:38:38 -0700
From: cmcmanis@scndprsn.Eng.Sun.COM (Chuck McManis)
To: java-interest@java.Eng.Sun.COM, dylan@cs.washington.edu


[Big Integer Class]

I wrote one, it will be part of Beta.

Without operator overloading doing large integers is a bit more
"clunky" than with it but the basic interface is:
	VPInteger a = new VPInteger(278);	// 278 bit integer
	VPInteger b = new VPInteger(278);	// and another
	VPInteger c;

	c = a.add(b);		// c <- a + b
	c = a.mul(b);		// c <- a * b;
	a.mul(c, b);		// c <- a * b (C already is allocated)
	... etc ...

--Chuck
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post