TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Feroz Khan
1.4k
300
92.3k
Calculation Issue
Apr 3 2016 4:37 PM
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");
}
Reply
Answers (
7
)
How can i multiply value from notepad.txt file through c#
Download Only Specified Files from Ftp C#