About
Pricing
Community
Teams
Start Free Trial
Log in
Alex A
asked on
3/18/2012
C#: Rounding decimal numbers
Calculation results have to be rounded up to the nearest 0.05
thanks
C#
Visual Basic.NET
ASP.NET
5
3
Last Comment
Easwaran Paramasivam
8/22/2022 - Mon
SOLUTION
a_b
3/18/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Kiran Sonawane
3/18/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
BuggyCoder
3/19/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Easwaran Paramasivam
3/19/2012
Below method could be used.
Decimal.Round(YourValue, 2),
Easwaran Paramasivam
3/19/2012
String round = YourValue.ToString("#0.00"
);
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Decimal.Round(YourValue, 2),