Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
Register
Login
2
Reply
regarding datatypes
Prasanth R
Oct 31 2013 9:52 AM
809
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Data saving in hindi in sql server 2008
Receiving a specific input from user