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.6.34 lib/currency.rb
piggybak-0.6.33 lib/currency.rb
piggybak-0.6.32 lib/currency.rb
piggybak-0.6.31 lib/currency.rb
piggybak-0.6.30 lib/currency.rb
piggybak-0.6.29 lib/currency.rb
piggybak-0.6.28 lib/currency.rb
piggybak-0.6.27 lib/currency.rb
piggybak-0.6.26 lib/currency.rb
piggybak-0.6.25 lib/currency.rb
piggybak-0.6.24 lib/currency.rb
piggybak-0.6.23 lib/currency.rb
piggybak-0.6.22 lib/currency.rb
piggybak-0.6.21 lib/currency.rb
piggybak-0.6.20 lib/currency.rb
piggybak-0.6.19 lib/currency.rb
piggybak-0.6.18 lib/currency.rb
piggybak-0.6.17 lib/currency.rb
piggybak-0.6.16 lib/currency.rb
piggybak-0.6.15 lib/currency.rb