<?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: Convert bytes to megabytes</title>
	<atom:link href="http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/</link>
	<description>Helping Ruby Programmers become Awesome</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:25:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Satish Talim</title>
		<link>http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/comment-page-1/#comment-39</link>
		<dc:creator>Satish Talim</dc:creator>
		<pubDate>Wed, 14 Feb 2007 09:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/#comment-39</guid>
		<description>The following worked -

require &#039;ruby-units&#039;
# big file
len = File.size(&quot;Dreamweaver8-en.exe&quot;)
puts len.to_unit(&#039;B&#039;).to(&#039;MB&#039;)</description>
		<content:encoded><![CDATA[<p>The following worked -</p>
<p>require &#8216;ruby-units&#8217;<br />
# big file<br />
len = File.size(&#8220;Dreamweaver8-en.exe&#8221;)<br />
puts len.to_unit(&#8216;B&#8217;).to(&#8216;MB&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/comment-page-1/#comment-28</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Tue, 06 Feb 2007 10:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/#comment-28</guid>
		<description>I guess you are talking about this?
http://ruby-units.rubyforge.org/ruby-units/
I did a gem install ruby-units, but the program that you mentioned did not work? Am I making a mistake somewhere?</description>
		<content:encoded><![CDATA[<p>I guess you are talking about this?<br />
<a href="http://ruby-units.rubyforge.org/ruby-units/" rel="nofollow">http://ruby-units.rubyforge.org/ruby-units/</a><br />
I did a gem install ruby-units, but the program that you mentioned did not work? Am I making a mistake somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zimbatm</title>
		<link>http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/comment-page-1/#comment-27</link>
		<dc:creator>zimbatm</dc:creator>
		<pubDate>Tue, 06 Feb 2007 10:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/2007/02/06/convert-bytes-to-megabytes/#comment-27</guid>
		<description>Or use ruby-units :

require &#039;units&#039;
# big file
len = File.size(&quot;Dreamweaver8-en.exe&quot;)
puts len.to_unit(&#039;B&#039;).to(&#039;MB&#039;) # same here</description>
		<content:encoded><![CDATA[<p>Or use ruby-units :</p>
<p>require &#8216;units&#8217;<br />
# big file<br />
len = File.size(&#8220;Dreamweaver8-en.exe&#8221;)<br />
puts len.to_unit(&#8216;B&#8217;).to(&#8216;MB&#8217;) # same here</p>
]]></content:encoded>
	</item>
</channel>
</rss>

