Code example for BigDecimal

Methods: add, setScale

0
		choiceFieldValues.add(new SelectItem(1,"value1"));
		choiceFieldValues.add(new SelectItem(2,"value2"));
		choiceFieldValues.add(new SelectItem(3,"value3"));
		choiceFieldValues.add(new SelectItem(4,"value4"));
		 
		decimalField = new BigDecimal("1155.37");
		decimalField.setScale(2);
		decimalField = decimalField.add(new BigDecimal("0.5231"));
	} 
 
	public String getTextField() {
		return textField;
	} 
 
	public void setTextField(String textField) {
		this.textField = textField;
	} 
 
	public Date getDateField() {
		return dateField;
	}