Ruby quantize gem. Adds a quantize() method to the Integer class
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec/quantize
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
quantize-0.0.2.gem
quantize-0.0.3.gem
quantize.gemspec

README.md

Quantize

Build Status

Adds a quantize() method to the Integer class. Floors any integer to the nearest lower multiple of the supplied number.

Briefly

require 'quantize'

a = 15.quantize(10)

puts a

10

Copyright

Copyright (c) 2010 Bruce James. See LICENSE for details.