By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,269 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,269 IT Pros & Developers. It's quick & easy.

Format out put to 2 decimal places

P: 10
Hi I'm new to C# and was wondering how to format the output to 2 decimal places.

This is my code:

dblA = dblB * dbl3;

I would need dblA to be for example: 3.75 and not 3.75333

Thanks for your help,
Nov 2 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.