class Sasin::Converter

Constants

RATE

Public Class Methods

convert(param) click to toggle source
# File lib/sasin/converter.rb, line 7
def self.convert(param)
  coerced_param = if param.is_a?(BigDecimal)
                    param
                  else
                    BigDecimal(param.to_s)
                  end
  (coerced_param / RATE).to_f.round(25)
end