By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,542 Members | 1,740 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,542 IT Pros & Developers. It's quick & easy.

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

P: 1
please halp me to convert string to float
Aug 24 '07 #1
Share this Question
Share on Google+
1 Reply


dip_developer
Expert 100+
P: 648
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.  
Aug 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.