From: Marc-Andre Lafortune Date: 2009-11-10T10:19:30+09:00 Subject: [ruby-core:26656] [Feature #2347] Math::INFINITY Issue #2347 has been updated by Marc-Andre Lafortune. I'm quite ignorant about the differences between compilers and implementations (and I wouldn't mind remaining this way! ;-) The fact is, Ruby _already_ generates infinities. Line 2471 of numeric.c: #define infinite_value() ruby_div0(1.0) It's used in fix_pow. I think there is a C macro called INFINITY also: http://www.gnu.org/software/libtool/manual/libc/Infinity-and-NaN.html If it is still an imperative that Ruby supports non IEEE architectures, then maybe that constant could be conditional on that? I do not want to judge the decision to support an old platforms or not. I think it would be sad if Ruby was kept back because of supporting them though. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2347 ---------------------------------------- http://redmine.ruby-lang.org