Skip to content

efficiency20/unit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • Ruby 100.0%