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
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.
RSS feed for comments on this post. TrackBack URI