Ruby 4.0 リファレンスマニュアル

constant Math::PI

PI -> Float[permalink][rdoc][edit]

円周率の近似値。Float で表せる最も正確な値です。

p Math::PI
# => 3.141592654