Sha256: da6c2d2192dbc2b0607dcf29ac6bbb538818d0e641e65978549b1b6c12210f2d

Contents?: true

Size: 64 Bytes

Versions: 7

Compression:

Stored size: 64 Bytes

Contents

class Float
  def to_c
    ((self*100).to_i).to_f/100
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
piggybak-0.3.2 lib/currency.rb
piggybak-0.3.1 lib/currency.rb
piggybak-0.3.0 lib/currency.rb
piggybak-0.2.1 lib/currency.rb
piggybak-0.2.0 lib/currency.rb
piggybak-0.1.1 lib/currency.rb
piggybak-0.1.0 lib/currency.rb