public decimal vatRsToPer(decimal vatAmt, decimal totalAmt) { try { decimal rupees; rupees = decimal.Multiply(vatAmt, 100m); rupees = decimal.Divide(rupees, totalAmt); return rupees; } catch { return 0m; } }
Quote:Please Help me, Where I did wrong....
Quote:rupees = decimal.Divide(rupees, totalAmt);
rupees = decimal.Divide(rupees, totalAmt-vatAmt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)