Class: Float

Inherits:
Object
  • Object
show all
Includes:
MirUtility
Defined in:
lib/mir_utility.rb

Constant Summary

Constants included from MirUtility

MirUtility::MONTHS, MirUtility::STATE_CODES

Instance Method Summary collapse

Methods included from MirUtility

canonical_url, destroy_old_sessions, normalize, normalize_slug, state_name_for

Instance Method Details

#to_nearest_tenthObject



654
655
656
# File 'lib/mir_utility.rb', line 654

def to_nearest_tenth
  sprintf("%.1f", self).to_f
end