I try:
decimal dd = 4.12345611111111111;
lblText.Text = string.Format("{0:N6}", dd);
but I got a error use an M suffix
decimal dd = 4.12345611111111111m;
its work perfect.I want to know what is m for?.Thanks for clearing my vision.
note: lblText is id of label control in asp.net.
If you don’t specify the suffix the default is
doublefor a number with decimal separator. M specify that the literal is actually adecimal