<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: What You Should Know About Rounding in VB.NET</title>
	<atom:link href="http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/</link>
	<description>Articles on VB.NET and Software Development Team Leadership</description>
	<pubDate>Wed, 08 Feb 2012 01:06:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mahan</title>
		<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/comment-page-1/#comment-1414</link>
		<dc:creator>mahan</dc:creator>
		<pubDate>Tue, 13 Oct 2009 01:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/#comment-1414</guid>
		<description>you can use a variable declared as Decimal and assigned value is 0 then add it to your variable you want to set precise</description>
		<content:encoded><![CDATA[<p>you can use a variable declared as Decimal and assigned value is 0 then add it to your variable you want to set precise</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/comment-page-1/#comment-1397</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/#comment-1397</guid>
		<description>dennis, #.00 is correct.
515.4445 when rounded to 2 decimal places is 515.44.
This is because the number in the third decimal place (4) is less than 5.
515.4454 would round to 515.45, because in this case the 3rd decimal place (5) &gt;= 5</description>
		<content:encoded><![CDATA[<p>dennis, #.00 is correct.<br />
515.4445 when rounded to 2 decimal places is 515.44.<br />
This is because the number in the third decimal place (4) is less than 5.<br />
515.4454 would round to 515.45, because in this case the 3rd decimal place (5) &gt;= 5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dennis</title>
		<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/comment-page-1/#comment-1368</link>
		<dc:creator>dennis</dc:creator>
		<pubDate>Fri, 26 Jun 2009 06:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/#comment-1368</guid>
		<description>&lt;code&gt;double valuetoround = 515.435;

roundvalue = valuetoround.ToString(”#.00″);
&lt;/code&gt;
this method seem to be flawed also just try :

515.4445 it will round to 515.44 instead of 515.45</description>
		<content:encoded><![CDATA[<p><code>double valuetoround = 515.435;</p>
<p>roundvalue = valuetoround.ToString(”#.00″);<br />
</code><br />
this method seem to be flawed also just try :</p>
<p>515.4445 it will round to 515.44 instead of 515.45</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepak v panchal</title>
		<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/comment-page-1/#comment-1254</link>
		<dc:creator>deepak v panchal</dc:creator>
		<pubDate>Tue, 25 Nov 2008 04:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/#comment-1254</guid>
		<description>use ToString Method as follow 

  double valuetoround = 515.435;

  roundvalue = valuetoround.ToString("#.00");

  You will get your required ans. 515.44 instead of 515.43</description>
		<content:encoded><![CDATA[<p>use ToString Method as follow </p>
<p>  double valuetoround = 515.435;</p>
<p>  roundvalue = valuetoround.ToString(&#8221;#.00&#8243;);</p>
<p>  You will get your required ans. 515.44 instead of 515.43</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Slocum</title>
		<link>http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/comment-page-1/#comment-1205</link>
		<dc:creator>Stephen Slocum</dc:creator>
		<pubDate>Thu, 11 Sep 2008 14:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/07/31/what-you-should-know-about-rounding-in-vbnet/#comment-1205</guid>
		<description>I'm having a hard time with Math.Round.  Any idea why:

Math.Round(515.435, 2, MidpointRounding.AwayFromZero)

returns 515.43 in VB.NET 2008?  I really, really need it to return 515.44.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a hard time with Math.Round.  Any idea why:</p>
<p>Math.Round(515.435, 2, MidpointRounding.AwayFromZero)</p>
<p>returns 515.43 in VB.NET 2008?  I really, really need it to return 515.44.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

