class CAS::NEG_INFINITY_CONSTANT

Class that represents the constant Negative Infinity (-∞)

Public Class Methods

new() click to toggle source

Initializer for the negative infinity constant

* **returns**: `CAS::NEG_INFINITY_CONSTANT` new instance
# File lib/numbers/constants.rb, line 286
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 293
def to_s
  "-∞"
end