Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/annlat/LaRuby.rb,
lib/annlat/Sundries.rb
Instance Method Summary collapse
- #prettify ⇒ Object
- #to_ltx ⇒ Object (also: #l)
Instance Method Details
#prettify ⇒ Object
14 15 16 |
# File 'lib/annlat/Sundries.rb', line 14 def prettify to_i == self ? to_i : self end |
#to_ltx ⇒ Object 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 |