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
Mohammed Gamal
NA
65
0
convert float to int without approximate
Nov 3 2009 5:02 AM
hi everyone,
i want to convert a floating number to integer number without make any approximation ex:-
double x = 2.6;
int y = Convert.ToInt16(x) ; // output y= 3
all i need that make y= 2
i used this conversion in c++ vs6 the output with me is 2 please help me reach this output
many thanx
Reply
Answers (
4
)
Call the Load Event from one form after it has been loaded before
c#