private void button2_Click(object sender, EventArgs e) { decimal value = 10M; MessageBox.Show(NumberUtilities.format(value)); }