I hope I’m not setting myself up for a Doh! moment…
Is there some way to determine (from Ruby code) the minimum and maximum
limits for Ruby Floats (i.e. along the lines of the C constants FLT_MIN,
FLT_MAX, DBL_MIN and DBL_MAX from the <limits.h> header file)?
I hope I’m not setting myself up for a Doh! moment…
Is there some way to determine (from Ruby code) the minimum and maximum
limits for Ruby Floats (i.e. along the lines of the C constants FLT_MIN,
FLT_MAX, DBL_MIN and DBL_MAX from the <limits.h> header file)?
Beats me. But if there’s not, maybe there should be.
Time for an RCR? Something like Float::FLT_MAX etc.?
Hal
···
----- Original Message -----
From: “Lyle Johnson” lyle@users.sourceforge.net
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Friday, December 20, 2002 7:17 PM
Subject: How to query FLT_MAX from Ruby code?
Is there some way to determine (from Ruby code) the minimum and maximum
limits for Ruby Floats (i.e. along the lines of the C constants FLT_MIN,
FLT_MAX, DBL_MIN and DBL_MAX from the <limits.h> header file)?
Beats me. But if there’s not, maybe there should be.
Time for an RCR? Something like Float::FLT_MAX etc.?
Dave sat with me a few years ago and helped me enter an RCR for this. I haven’t
checked it’s status in a year or so. For the time being we apply our own patch
whenever we install ruby. (Included after signature.)
···
–
Bil Kleb
NASA Langley Research Center
Hampton, Virginia, USA