Module: CoreExtensions::Numeric::SPISU

Defined in:
lib/core_extensions/numeric/spisu.rb

Overview

Adds a general format method that belongs in more than one class and is more a utility function belonging to the SPISU-format more than anything else.

Author:

  • Michael Litton

Instance Method Summary collapse

Instance Method Details

#spisu_formatObject



10
11
12
# File 'lib/core_extensions/numeric/spisu.rb', line 10

def spisu_format
  ("%.2f" % self).gsub(".","")
end