From: noreply@... Date: 2006-04-28T04:14:47+09:00 Subject: [ ruby-Bugs-4284 ] Float near Float::MIN Bugs item #4284, was opened at 2006-04-27 21:14 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4284&group_id=426 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Karl Brodowsky (bk1) Assigned to: Nobody (None) Summary: Float near Float::MIN Initial Comment: 1. my system $ ruby --version ruby 1.8.4 (2005-12-24) [i686-linux] $ irb --version irb 0.9.5(05/04/13) $ uname -a Linux ***** 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown 2. what I did: irb irb(main):001:0> Float::MIN => 2.2250738585072e-308 irb(main):002:0> 1e-307 (irb):2: warning: Float 1e-307 out of range => 9.88131291682493e-324 3. comment: since 2.2250738585072e-308 is a legitimate Floating point number, and meant to be the smallest above zero, I would expect 1e-307, which is more than that to be working correctly. But I get: - a weird warning which should not occur - a wrong output which is off about by a factor of 10**16 - a output which should not be a legitimate Float, because it is between 0 and Float::MIN ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4284&group_id=426