class Float
Public Instance Methods
trim()
click to toggle source
# File lib/simple_helper/float/trim.rb, line 4 def trim i = to_i f = to_f i == f ? i : f.round(1) end
# File lib/simple_helper/float/trim.rb, line 4 def trim i = to_i f = to_f i == f ? i : f.round(1) end