人民币形式:
decimal price;
decimal discount;
decimal discounted_price;
// compute discounted price
price = 19.95m;
discount = 0.15m; // discount rate is 15%
discounted_price = price - (price * discount);
Console.WriteLine("Discounted price: {0:C}", discounted_price);