From: matz@... (Yukihiro Matsumoto) Date: 2000-09-23T03:38:41+09:00 Subject: [ruby-talk:5069] Re: Proposal: Add constants to Math Hi, In message "[ruby-talk:5045] Proposal: Add constants to Math" on 00/09/21, Robert Feldt writes: |Since we now have Float#nan? and Float#infinite? I think the following |constants should be added to Math (or Float?) for completeness: | |NEGINF = Math.log(-1) # Or better way of generating NEGINF... |INF = -NEGINF |NAN = INF / INF Do you know good/portable way to generate positive/nagative infinity and NaN? matz.