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 206
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 213
def to_s
  "π"
end