Format String like two decimal Point

Posted by Ppathi under C# on 3/1/2012 | Points: 10 | Views : 1767 | Status : [Member] | Replies : 4
Hi,

Any one help while i export the data in excel format i want to format the strings like two decimal. Please give sample code for the same

Thanks & Regards,
Pasupathi G
No Pain No Gain



Responses

Posted by: Hmanjarawala on: 3/1/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi ppathi,

will you describe your question in detai, n if possible attach code snippet also...

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ppathi on: 3/1/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

i have used format function but while i export its fail

I want show this value with two decimal point

TblStockDet += @"<td class='GridDataR pbrborder' width='11%'>" + FormatFunctions.C_Format.M_FormatNumber(CurPrice.ToString(), "2", "0")  + @"</td>";



Thanks & Regards,
Pasupathi G
No Pain No Gain

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 3/1/2012 [Member] Bronze | Points: 25

Up
0
Down
are you using ASP.Net or MVC or normal C#??

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ppathi on: 3/1/2012 [Member] Starter | Points: 25

Up
0
Down
hi

ASP.Net

Thanks & Regards,
Pasupathi G
No Pain No Gain

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response