Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/annlat/LaRuby.rb,
lib/annlat/Sundries.rb

Instance Method Summary collapse

Instance Method Details

#prettifyObject



14
15
16
# File 'lib/annlat/Sundries.rb', line 14

def prettify
  to_i == self ? to_i : self
end

#to_ltxObject Also known as: l



196
197
198
# File 'lib/annlat/LaRuby.rb', line 196

def to_ltx
  (self >= 0) ? Atom.new(self) : -(Atom.new(-self))
end