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
David Smith
NA
2k
0
C# Set precision
Nov 4 2011 3:14 AM
I want to set the precision or make sure i am getting the precision by 2 decimal points, at the moment once I read in the value, its rounded off to the nearest dollar if you know
what i mean.
Can some assist me. I want to set the precision by two decimal places.
if (reader["PRICE"] != DBNull.Value)
{
Row.PRICE= Convert.ToDecimal(reader["PRICE"]);
}
Reply
Answers (
11
)
Parallel Extensions
Read dat file in winforms applications