FileDocCategorySizeDatePackage
BigNums.javaAPI DocExample510Sat Nov 25 12:55:58 GMT 2000None

BigNums.java

import java.math.*;

/**
 * Demonstrate large numbers.
 * @author Ian F. Darwin, ian@darwinsys.com
 * @version $Id: BigNums.java,v 1.3 2000/11/25 17:55:59 ian Exp $
 */
public class BigNums {
	public static void main(String[] argv) {
		//+
		System.out.println("Here's Long.MAX_VALUE: " + Long.MAX_VALUE);
		BigInteger bInt = new BigInteger("3419229223372036854775807");
		System.out.println("Here's a bigger number: " + bInt);
		System.out.println("Here it is as a double: " + bInt.doubleValue());
		//-
	}
}