<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Shell Script Nuggets: Mathematic Computations</title>
	<link>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/</link>
	<description>Get a grip!</description>
	<pubDate>Fri, 18 May 2012 02:58:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: aaa</title>
		<link>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-95587</link>
		<pubDate>Fri, 12 Jun 2009 15:39:50 +0000</pubDate>
		<guid>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-95587</guid>
					<description>Looks like dc's base conversion is buggy:

The following command (copied directly from the table above) reports that 360 in octal is equivalent to 132 in hex.

dc -e"8i 16o 360 p"

In fact, 360 in octal is equivalent to F0 in hex.</description>
		<content:encoded><![CDATA[<p>Looks like dc&#8217;s base conversion is buggy:</p>
<p>The following command (copied directly from the table above) reports that 360 in octal is equivalent to 132 in hex.</p>
<p>dc -e&#8221;8i 16o 360 p&#8221;</p>
<p>In fact, 360 in octal is equivalent to F0 in hex.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Electromoss</title>
		<link>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-41811</link>
		<pubDate>Tue, 03 Jul 2007 08:19:03 +0000</pubDate>
		<guid>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-41811</guid>
					<description>I like prefix/Polish notation :)

&lt;strong&gt;G:&lt;/strong&gt; Well, it's a little harder to read since it's not the natural way our eyes and brain processes the information.</description>
		<content:encoded><![CDATA[<p>I like prefix/Polish notation :)</p>
<p><strong>G:</strong> Well, it&#8217;s a little harder to read since it&#8217;s not the natural way our eyes and brain processes the information.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: gheorghe</title>
		<link>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-3373</link>
		<pubDate>Tue, 22 Aug 2006 19:58:12 +0000</pubDate>
		<guid>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-3373</guid>
					<description>Thank you very much! 
I was looking for a binary to decimal converter and backwards to use in a shell script. I checked the dc man page but didn't find any options... I was thinking of writing a shell script with expr to do all the computations but then I found your page :D
This was really a life saver, couse I'm not that good at math :)</description>
		<content:encoded><![CDATA[<p>Thank you very much!<br />
I was looking for a binary to decimal converter and backwards to use in a shell script. I checked the dc man page but didn&#8217;t find any options&#8230; I was thinking of writing a shell script with expr to do all the computations but then I found your page :D<br />
This was really a life saver, couse I&#8217;m not that good at math :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: WL</title>
		<link>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-3054</link>
		<pubDate>Mon, 21 Aug 2006 04:54:40 +0000</pubDate>
		<guid>http://www.boredworkers.com/2006/08/17/shell-script-nuggets-mathematic-computations/#comment-3054</guid>
					<description>Now i understand. Great!</description>
		<content:encoded><![CDATA[<p>Now i understand. Great!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

