ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Convert String value to float or double in C#<p>Hi <a class="username" rel="droiddeve"> droiddeve</a>,</p> <p>Refer the below code.</p> <pre class="brush: csharp">string a = &#34;20.05&#34;; float b = float.Parse(a, System.Globalization.CultureInfo.InvariantCulture.NumberFormat); // 20.05 OR double c = Convert.ToDouble(a); // 20.05</pre> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/927756/Convert-String-value-to-float-or-double-in-C/https://www.aspforums.net:443/Threads/927756/Convert-String-value-to-float-or-double-in-C/Wed, 14 Dec 2016 03:38:13 GMT