To round the number itself, use the Math.Round static method.
For example, Math.Round(123.45678, 3) produces 123.457.
To leave the number with its full precision, but print a rounded number, use
String.Format().
For example, String.Format("{0:0.000}", 123.45678) produces the string
"123.457"
One caution: the Math.Round() function uses "banker's rounding" which,
rounds to even digits if the number is halfway between; for example,
123.4565 and 123.4555 both round to 123.456.
However, the String.Format() function appears to round up, so that 123.4565
rounds to "123.457".
HTH,
Tom Dacon
Dacon Software Consulting
"Dooglo" <Do****@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
I've forgotten.
How do I round off numbers from an equation or round off to the third
decimal point for instance.
eg.
answers number is 12345.678910
I would like to see answer as 12345.67 or .68
Thanks