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
Amit Maheshwari
NA
5.3k
1.4m
Error in code
Nov 24 2011 11:43 AM
Hi friends,
I want to know that i have a some lines code that gave this error were the assignments of 9.0 to g.
Float g = 9.0;
and
g = 9.0;
float is a floating point number yet the line which assigned the 9 value to f compiles correctly while the assignment of 9.0 to g doesn't! This is definitely counter intuitive! The error is
"Error 1 Literal of type double cannot be implicitly converted to type 'float'; use an 'F' suffix to create a literal of this type"
.
Reply
Answers (
2
)
Identify which Foo method will be called.
SQL query string result to fill in to datagridview columns