How do I format a Double to a String in C# so as to have only two decimal places?

If I use String.Format("{0:0.00}%", myDoubleValue) the number is then rounded and I want a simple truncate without any rounding. I also want the conversion to String to be culture sensitive.

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *