Code example for BigDecimal

Methods: divide

0
				return null; 
			if ( args[1].equals( BigInteger.ZERO ) )
				return null; 
		 
			BigDecimal first = new BigDecimal( args[0] );
			BigDecimal second = new BigDecimal( args[1] );
			 
			return first.divide(second, MathContext.DECIMAL128);
		} 
 
		public Double apply(Double... args) {
			if ( args.length != 2 )
				return null; 
			 
			return args[0] / args[1];
		} 
 
		public Float apply(Float... args) {
			if ( args.length != 2 )
				return null;