Method: Origami::Real#to_s

Defined in:
lib/origami/numeric.rb

#to_sObject Also known as: to_obfuscated_str



174
175
176
# File 'lib/origami/numeric.rb', line 174

def to_s
    sprintf("%f", self).sub(/\.0*$|(\.\d*[^0])0*$/, '\1')
end