Code example for BigDecimal

Methods: divide

0
	public BigDecimal getAvg() {
		return avg;
	} 
 
	public void setAvg(BigDecimal max, BigDecimal min) {
		this.avg = (max.subtract(min)).divide(new BigDecimal(2), 2, RoundingMode.HALF_UP);
	} 
 
	private BigDecimal value;
 
	public RangedValue(final BigDecimal min, final BigDecimal max)
	{ 
		super(); 
		this.min = min;
		this.max = max;
	} 
 
	/** 
	 * @return the max 
	 */ 
	public BigDecimal getMax()