 




<?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: EVAL Math Problem</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/eval-math-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/eval-math-problem/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/eval-math-problem/#comment-53110</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Thu, 08 May 2008 08:42:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-53110</guid>
		<description><![CDATA[Kevin, you are wrong. It&#039;s Operator Precedence that gives the zero result, just as has been explained. The position of the minus sign is nothing to do with it. Abutting the sign against the parenthesis does NOT turn it into a &#039;unary&#039; operator - try changing your code and see.

How do you get this:

&quot;XXAVAL= 30 + (60-) + 30 making XXAVAL = zero.&quot;

From this:

XXAVAL= LTSTHQ-(LTCUSQ+LTPICQ+XPQTY)+OLOLQT

???

Where did your new plus sign come from? It just appeared from nowhere! If the code actually WAS

XXAVAL= LTSTHQ+ -(LTCUSQ+LTPICQ+XPQTY)+OLOLQT

then you would be correct. But that&#039;s not what you have got. So, please understand what advice you are being given, because if you continue to think that evaluation depends on operator spacing you will end up making some serious mistakes.

Regards,

Sloopy]]></description>
		<content:encoded><![CDATA[<p>Kevin, you are wrong. It&#8217;s Operator Precedence that gives the zero result, just as has been explained. The position of the minus sign is nothing to do with it. Abutting the sign against the parenthesis does NOT turn it into a &#8216;unary&#8217; operator &#8211; try changing your code and see.</p>
<p>How do you get this:</p>
<p>&#8220;XXAVAL= 30 + (60-) + 30 making XXAVAL = zero.&#8221;</p>
<p>From this:</p>
<p>XXAVAL= LTSTHQ-(LTCUSQ+LTPICQ+XPQTY)+OLOLQT</p>
<p>???</p>
<p>Where did your new plus sign come from? It just appeared from nowhere! If the code actually WAS</p>
<p>XXAVAL= LTSTHQ+ -(LTCUSQ+LTPICQ+XPQTY)+OLOLQT</p>
<p>then you would be correct. But that&#8217;s not what you have got. So, please understand what advice you are being given, because if you continue to think that evaluation depends on operator spacing you will end up making some serious mistakes.</p>
<p>Regards,</p>
<p>Sloopy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.041 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 21:45:51 -->