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
harish reddy
NA
11
1.6k
Ouput in decimals
Nov 12 2018 3:09 AM
int number = 3;
double value = Math.Round(46.00000000001, number);
Console.WriteLine(value);
My intention is to give input as 46.00000000001 and get output as 46.000 in the consolewindow. I want to get 46.000, not 46. So pls guide me.
if i give Math.Round(97.1639230690752, 3) its rounding of and giving me 97.164
but if do for Math.Round(46.00000000001, number) , its only giving me 46 , not 46.000
Pls explain
Reply
Answers (
3
)
Object reference not set to an instance of an object
how to get image from web service from andriod