Eddy,

The comments are nicely truncated in the display now. However, the values in the MOp fields are still showing with those long, unwieldy fractional parts.

Somehow, I didn't notice that before I suggested re-formatting the outputs.

Instead, you can fix both places with one treatment -- using either Math.Round or Math.Truncate

First, truncate. This works to just truncate to 'precision' digits

(note -- Math.truncate truncates at the decimal point, which is why we multiply by 'precision' value before truncating)

static double[] pow10 = { 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10 }

public static double Truncate(this double x, int precision)

{

if (precision < 0)

throw new ArgumentException()

end if

if (precision == 0)

return Math.Truncate(x)

end if

double m = precision >= pow10.Length ? Math.Pow(10, precision) : pow10[precision]

return Math.Truncate(x * m) / m

}

And this serves to round (up or down):

rounded = Math.Round(2.22939393, 3) ' Returns 2.229

Lloyd