You can even do things like
s += String.Format("{0:F2} ", num1);
s += String.Format("{0:F3}", num2);
This would give you a string of two numbers separated by a space.
One with 2 digits after the decimal point(which is the default, you don't have to mention it if you like) and one with 3 digits after the decimal point.
Last edited by ddanbe; Mar 2nd, 2009 at 2:19 pm.
Reputation Points: 2023
Solved Threads: 644
Senior Poster
Online 3,736 posts
since Oct 2008