Posted on: 10/4/2015 8:04:53 PM | Views : 972

Hi all,
A little question about tax calculation (double or decimal)
As my picture shows there are 3 decimals behind, how do i get 2 decimals?

Here my script it is not the most beatifull script, but Iam working on it to make it simpler
if (decimal.TryParse(LBsub.Text, out value)) { double a = Convert.ToDouble(LBsub.Text); double b = Convert.ToDouble("21"); double c = Convert.ToDouble("100"); double d = Convert.ToDouble("25,00"); LbTAX.Text = (a / c * b).ToString(); //Here i need 2 decimals not 3 decimal _a = Convert.ToDecimal(LBsub.Text); if (_a < 200) { LbShipCost.Text = ...

Go to the complete details ...