Unit support for numbers
Ruby
Pull request Compare This branch is 22 commits ahead, 5 commits behind pivotale20:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.markdown
Rakefile
unit.gemspec

README.markdown

README

Units introduces computation with units to ruby.

Usage

require 'unit'
puts 1.meter.in_kilometer
puts 1.MeV.in_joule
puts 10.KiB / 1.second
puts 10.KiB_per_second
puts Unit('1 m/s^2')

See the test cases for more examples.

Authors

Daniel Mendler