How to get Math module constants in Ruby

1 Answer

0 votes
puts Math::E
 
puts Math::PI



# run:
# 
# 2.718281828459045
# 3.141592653589793
#

 



answered Dec 21, 2020 by avibootz
...