Yasserzaid’s Weblog

February 20, 2009

How to format a string of percentage format to decimal format

Filed under: ASP.Net — yasserzaid @ 1:12 pm

Hi

try this example to  format a string of percentage format to decimal format

string percentString=”12 %”;

double value=double.Parse(percentString.Replace(“%”,”").Trim()))/100;

Hope this helps

Good Luck

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.