From: Robert Gustavsson <0317025435@...> Date: 2001-01-07T00:34:10+09:00 Subject: [ruby-talk:8739] FloatDomainError exception, bug in Ruby? Hi again! Still using: "ruby 1.6.1 (2000-10-05) [i386-cygwin]" This code: --------------- begin # raises FloatDomainError f = 2.0 loop { f *= f print f, "\n" } rescue Exception print $!.type, " ", $@, "\n" else print "No error raised.\n" end --------------- Does not work as expected (throwing FloatDomainError when f gets infinite). The output (I had to break the program with Ctrl-C which raised the Interrupt exception as expected): --------------- 4.0 16.0 256.0 65536.0 4294967296.0 1.844674407e+19 3.402823669e+38 1.157920892e+77 1.340780793e+154 Infinity Infinity Infinity . . . Interrupt rubytest.rb:93rubytest.rb:92:in `loop'rubytest.rb:92 --------------- Is this a bug? Rob