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.How to convert Decimal result into Integer using C# in ASP.Net<blockquote><cite>nedash says:</cite> <pre>LblResult.Text = (Convert.ToDouble(Lblcredit.Text) / Convert.ToDouble(12.9)).ToString();</pre> </blockquote> <p>&nbsp;Replace above code with below.</p> <pre class="brush: csharp">LblResult.Text = Convert.ToInt32((Convert.ToDouble(Lblcredit.Text) / Convert.ToDouble(12.9))).ToString();</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/210744/How-to-convert-Decimal-result-into-Integer-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/210744/How-to-convert-Decimal-result-into-Integer-using-C-in-ASPNet/Tue, 04 Apr 2017 06:17:12 GMTHow to convert Decimal result into Integer using C# in ASP.Net<p>@nedash,</p> <p>Try following code...</p> <pre class="brush: csharp">double b = 567.123658596; Label1.Text = b.ToString(); Label2.Text = Convert.ToInt32(b).ToString();</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/210744/How-to-convert-Decimal-result-into-Integer-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/210744/How-to-convert-Decimal-result-into-Integer-using-C-in-ASPNet/Tue, 04 Apr 2017 06:23:07 GMT