Home › Code Snips › Accessing Pi In Ruby Accessing Pi In Ruby by Kyle on December 04, 2009 · Posted in Ruby Math::PI #=> 3.14159265358979 Save. Share. Submit. Digg · Twitter · StumbleUpon · Delicious · Facebook · Google · Reddit · Technorati Related Snips Selecting The Array Index With The Maximum Value Initialize Arguments And Superclass Rounding Up A Float In Ruby Inserting A String Into A String Hide Sidebar