Code example for BigDecimal

Methods: multiply

0
 
	private void doPercentChar() { 
		if (stack.size() == 0)
			return; 
		setDisplay(new BigDecimal(result).divide(HUNDRED)
				.multiply(new BigDecimal(stack.peek())).toPlainString());
		tvOp.setText("");
	} 
 
	private void doEqualsChar() { 
		if (lastOp == '\0') {
			return; 
		} 
		if (!isInEquals) {
			isInEquals = true;
			stack.push(result);
		} 
		doLastOp(); 
		tvOp.setText("");
	}