HI,
I want to calculate value like below but some decimal value is not rounding like for example if
decimal value more than 0.50 than should be 1. please below my code and tell me solution. thanks.
if (Perc >= 95 && Perc <= 99)
{
bounus_txt.ForeColor = Color.Green;
bounus_txt.Text = (TotalSale / 100 * 0.50).ToString("0");
}
Nishant MittalPosted Apr 4, 2016, 12:15 AM
Prakash TripathiPosted Apr 7, 2016, 12:42 AM
Upendra Pratap ShahiPosted Apr 4, 2016, 12:56 PM
Feroz KhanPosted Apr 4, 2016, 7:47 AM
Nishant MittalPosted Apr 4, 2016, 1:55 AM
Amit KumarPosted Apr 4, 2016, 1:45 AM
Upendra Pratap ShahiPosted Apr 4, 2016, 1:27 AM