Use the decimal type to compute a discount.