Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
regarding datatypes
Prasanth R
11y
815
1
Reply
int d =39/2;
decimal l=(decimal)d;
Console.Writeline(l);
The output is 19.5
i used double it shows 20(rounding off)
what should i do now to get output as
19
from 19.5
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Data saving in hindi in sql server 2008
Receiving a specific input from user