Code example for BigInteger

Methods: compareTo

0
 
		public BigInteger apply(BigInteger... args) {
			if ( args.length != 2 )
				return null; 
			 
			if ( args[1].compareTo( BIGINTMAX ) > 0 || args[1].compareTo( BigInteger.ZERO ) < 0 )
				return null; 
			 
			return args[0].pow( args[1].intValue() );
		} 
 
		public Double apply(Double... args) {
			if ( args.length != 2 )
				return null; 
			 
			return Math.pow( args[0], args[1] );
		} 
 
		public Float apply(Float... args) {
			if ( args.length != 2 )
				return null;