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
Luke McGrath
NA
1
2.7k
round up or down the value that is in a text box, depending on the value
Mar 21 2011 8:46 PM
hi all,
im currently creating a program that will calculate averages of 3 different numbers which, when calculated the answer is ouputted to a text box, what i need and cannot get is that obviously averaging by 3 you will get a decimal answer eg 1.6 etc, what i need to calculate or do is that if the textbox value = 0.6 and less it equals 0 then also if textbox value = greater than 0.7 but less than 1.6 then that will equal 1, then in turn > 1.7 < 2.6 = 2 and >2.7 <3.6 = 3 and >3.7 < 4.6 = 4 and lastly > 4.7 <5.6 = 5
ive tried using math.ceiling and floor but do not know how to round up and round down depending on those particular values
can any one please shed some light on this issue as its very urgent!
Thanks in advance
Luke :)
Reply
Answers (
2
)
Set background image of a StatusBar in VB.NET
how do i retrieve date from sql database and show it in datetimepicker