Code example for BigDecimal

Methods: compareTo

0
	 
	public int getComparison() { return result; }
	 
	public void visit(BigDecimal[] args) {
		argCheck( args );
		result = args[0].compareTo( args[1] );
	} 
 
	public void visit(BigInteger[] args) {
		argCheck( args );
		result = args[0].compareTo( args[1] );
	} 
 
	public void visit(Double[] args) {
		argCheck( args );
		result = args[0].compareTo( args[1] );
	} 
 
	public void visit(Float[] args) {
		argCheck( args );
		result = args[0].compareTo( args[1] );