Sha256: 3e3c4793abddd658c15c6344996fcea199757d3015bda1cd4ae9c2e7a0e28f07
Contents?: true
Size: 211 Bytes
Versions: 28
Compression:
Stored size: 211 Bytes
Contents
module Workarea module CalculatePercentChange def calculate_percent_change(first, second) return nil if first.blank? || first.zero? ((second.to_f - first) / first.to_f) * 100 end end end
Version data entries
28 entries across 28 versions & 1 rubygems