<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; positive</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/positive/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Wed, 11 Aug 2010 13:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Actionscript Converting Negitive to Positive Numbers</title>
		<link>http://newsourcemedia.com/blog/actionscript-converting-negitive-to-positive-numbers/</link>
		<comments>http://newsourcemedia.com/blog/actionscript-converting-negitive-to-positive-numbers/#comments</comments>
		<pubDate>Sat, 11 Dec 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[absolut]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[mathematical]]></category>
		<category><![CDATA[negitive]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[positive]]></category>
		<category><![CDATA[positive number]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/12/10/actionscript-converting-negitive-to-positive-numbers/</guid>
		<description><![CDATA[Needed to know the simples way to convert a number from positive to negative or negative to positive in actionscripts. Here it is.

This is a revise to the flash actionscript tutorial on converting negitive numbers to positive numbers.
Now use Abs() function in flash actionscript
Math.abs()
The flash Math.abs() method is used to return the absolute value of [...]]]></description>
			<content:encoded><![CDATA[<p>Needed to know the simples way to convert a number from positive to negative or negative to positive in actionscripts. Here it is.<br />
<span id="more-207"></span></p>
<p>This is a revise to the flash actionscript tutorial on converting negitive numbers to positive numbers.</p>
<p><strong>Now use Abs() function in flash actionscript</strong></p>
<h3>Math.abs()</h3>
<p>The flash Math.abs() method is used to return the absolute value of x. This basically means it returns the distance between 0 and x in flash actionscript.</p>
<p>Although -5 is a negative number, it&#8217;s absolute value is the same as 5. This is because -5 has a distance of 5 from x just as 5 has a distance of 5 from x.</p>
<p>Example:</p>
<p class="code">Math.abs(-10); // Returns 10<br />
Math.abs(10); // Returns 10</p>
<h3>Old Tutorial on Converting Negatives to Positive and Positive to Negative numbers</h3>
<p>I needed to know the simples way to convert a number from                        positive to negative or negative to positive in actionscripts.                        Here it is:</p>
<p>[actionscripts]</p>
<p class="sourceCODE">// convert 100 to negative -100<br />
n = 100;<br />
n = &#8211; n;<br />
trace(n);// will = -100<br />
// convert -55 to positive 50<br />
n = -50;<br />
n = &#8211; n;<br />
trace(n);// will = 50</p>
<p>[/actionscripts]</p>
<p>This is how it work. Zero minus a positive number = a negative                        number. And Zero minus a negative number = a positive number.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://newsourcemedia.com/blog/php-validation-numbers-only-from/" rel="bookmark">PHP Validation Numbers Only From</a></li><li><a href="http://newsourcemedia.com/blog/formatting-numbers-in-flash-for-commas/" rel="bookmark">Formatting Numbers in Flash for Commas</a></li><li><a href="http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/" rel="bookmark">PHP Leading Zero for Double Digit Numbers</a></li><li><a href="http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/" rel="bookmark">PHP Round Off Decimal or Convert to Decimal Point</a></li><li><a href="http://newsourcemedia.com/blog/javascript-non-alphanumeric-characters-regex/" rel="bookmark">Javascript Non Alphanumeric Characters Regex</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/actionscript-converting-negitive-to-positive-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->