Connecting Tech Pros Worldwide Forums | Help | Site Map

how do i convert string to float in c#???

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 24 '07
please halp me to convert string to float

dip_developer's Avatar
Expert
 
Join Date: Aug 2006
Location: Asansol
Posts: 641
#2: Aug 24 '07

re: how do i convert string to float in c#???


Quote:

Originally Posted by tomerd11

please halp me to convert string to float

try this...

Expand|Select|Wrap|Line Numbers
  1.  
  2. string s1 = "123.45";
  3. double d1 = Convert.ToDouble(s1);
  4.  
  5.  
Reply