Skip to content

Instantly share code, notes, and snippets.

@KentaYamada
Created May 8, 2014 10:38
Show Gist options
  • Save KentaYamada/86bfaf2efad7fd121cab to your computer and use it in GitHub Desktop.
Save KentaYamada/86bfaf2efad7fd121cab to your computer and use it in GitHub Desktop.
外税消費税額計算
/// <summary>
/// 税込金額取得
/// </summary>
public decimal CalcIncludingPrice(decimal price, decimal taxRate)
{
return price * (100 + taxRate) / 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment