Sha256: 3c1f43eb64dad8948b658b4c3988263e57606695583f5f0eab12844595375e43
Contents?: true
Size: 153 Bytes
Versions: 11
Compression:
Stored size: 153 Bytes
Contents
class Numeric # convert float values to "cents" # my_value = 2.5 # my_value.to_cents # => 250 def to_cents (self * 100.0).to_i end end
Version data entries
11 entries across 11 versions & 3 rubygems