<?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: Unix scripts: how to sum numbers up</title>
	<atom:link href="http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Sun, 29 Aug 2010 16:01:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Pete</title>
		<link>http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/comment-page-1/#comment-5720</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Wed, 05 Aug 2009 19:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=465#comment-5720</guid>
		<description>Hello Ankan,
you need to use &quot;scale&quot; option from bc:
echo &#039;scale=25;57/43&#039; &#124; bc

Scale controls the number of decimal points.  Not sure if scale is an option, command or what not... but that&#039;s your answer.  

Regards,
Pete</description>
		<content:encoded><![CDATA[<p>Hello Ankan,<br />
you need to use "scale" option from bc:<br />
echo 'scale=25;57/43&#8242; | bc</p>
<p>Scale controls the number of decimal points.  Not sure if scale is an option, command or what not&#8230; but that's your answer.  </p>
<p>Regards,<br />
Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Floating point calculations in Unix scripts &#8212; UNIX Tutorial: Learn UNIX</title>
		<link>http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/comment-page-1/#comment-5045</link>
		<dc:creator>Floating point calculations in Unix scripts &#8212; UNIX Tutorial: Learn UNIX</dc:creator>
		<pubDate>Thu, 18 Jun 2009 12:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=465#comment-5045</guid>
		<description>[...] Summing numbers up in Unix scripts [...]</description>
		<content:encoded><![CDATA[<p>[...] Summing numbers up in Unix scripts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankan</title>
		<link>http://www.unixtutorial.org/2009/02/unix-scripts-how-to-sum-numbers-up/comment-page-1/#comment-4976</link>
		<dc:creator>Ankan</dc:creator>
		<pubDate>Mon, 15 Jun 2009 13:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.unixtutorial.org/?p=465#comment-4976</guid>
		<description>Hello,

   Can you please provide the following codes:

1. I divide 20 /6 . The answer id now 3. It sould be 3.33
2. How to do  10.222 + 1.1 = 11.322

Thanks in advance. :-)</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>   Can you please provide the following codes:</p>
<p>1. I divide 20 /6 . The answer id now 3. It sould be 3.33<br />
2. How to do  10.222 + 1.1 = 11.322</p>
<p>Thanks in advance. <img src='http://www.unixtutorial.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
