Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Mathモジュール > PI

constant Math::PI

PI -> Float[permalink][rdoc]

円周率



p Math::PI
# => 3.141592654