On Oct 18, 2004, at 1:19 AM, Robert Klemme wrote:
>>     puts 0.5.round             #=> 1
>>     puts sprintf("%.0f", 0.5)  #=> 0
> Which version of Ruby are you using?
>>> sprintf("%.0f", 0.5)
> => "1"
>>> RUBY_VERSION
> => "1.8.1"

[Slim:~] gavinkis% ruby -e "p Array.new(10000).collect{ 
sprintf('%.0f',0.5) }.uniq"
["0"]
[Slim:~] gavinkis% ruby --version
ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]


--
(-, /\ \/ / /\/