[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

[ ruby-Bugs-4284 ] Float near Float::MIN

From: noreply@...
Date: 2006-04-27 19:14:47 UTC
List: ruby-core #7796
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

In This Thread

Prev Next