class CAS::INFINITY_CONSTANT

Class that represents the constant Infinity (∞)

Public Class Methods

new() click to toggle source

Initializer for the infinity constant

* **returns**: `CAS::INFINITY_CONSTANT` new instance
# File lib/numbers/constants.rb, line 282
def initialize
  @x = (1.0/0.0)
end

Public Instance Methods

to_s() click to toggle source

String representation for the constant

* **returns**: `String`
# File lib/numbers/constants.rb, line 289
def to_s
  "∞"
end