Sha256: 2b41c5c92cfebc95c4e1a4b9d677dec5ae8df475d31d9f290e1646167f47961e

Contents?: true

Size: 69 Bytes

Versions: 81

Compression:

Stored size: 69 Bytes

Contents

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

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
piggybak-0.4.19 lib/currency.rb
piggybak-0.4.18 lib/currency.rb
piggybak-0.4.17 lib/currency.rb
piggybak-0.4.16 lib/currency.rb
piggybak-0.4.15 lib/currency.rb
piggybak-0.4.14 lib/currency.rb
piggybak-0.4.13 lib/currency.rb
piggybak-0.4.12 lib/currency.rb
piggybak-0.4.11 lib/currency.rb
piggybak-0.4.10 lib/currency.rb
piggybak-0.4.9 lib/currency.rb
piggybak-0.4.8 lib/currency.rb
piggybak-0.4.7.1 lib/currency.rb
piggybak-0.4.7 lib/currency.rb
piggybak-0.4.6 lib/currency.rb
piggybak-0.4.5 lib/currency.rb
piggybak-0.4.4 lib/currency.rb
piggybak-0.4.3 lib/currency.rb
piggybak-0.4.2 lib/currency.rb
piggybak-0.4.1 lib/currency.rb