Created
May 8, 2014 10:38
-
-
Save KentaYamada/86bfaf2efad7fd121cab to your computer and use it in GitHub Desktop.
外税消費税額計算
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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