I can't get Math.PI to work:

$ ruby -v
ruby 1.8.0 (2002-12-24) [sparc-solaris2.8]
$ irb
>> Math.PI
NoMethodError: undefined method `PI' for Math:Module
        from (irb):5
>>

But the Ruby source seems to have it:

Init_Math()
{
    rb_mMath = rb_define_module("Math");

#ifdef M_PI
    rb_define_const(rb_mMath, "PI", rb_float_new(M_PI));
#else
    rb_define_const(rb_mMath, "PI", rb_float_new(atan(1.0)*4.0));
#endif
 ...
}

Does anyone know what's going on?

-- 
Daniel Carrera
Graduate Teaching Assistant.  Math Dept.
University of Maryland.  (301) 405-5137