class CAS::PI_CONSTANT
Class that represents the constant Pi (π)
Public Class Methods
new()
click to toggle source
Initializer for the pi constant
* **returns**: `CAS::PI_CONSTANT` new instance
# File lib/numbers/constants.rb, line 229 def initialize @x = Math::PI end
Public Instance Methods
to_s()
click to toggle source
String representation for the constant
* **returns**: `String`
# File lib/numbers/constants.rb, line 236 def to_s "π" end