Skip to content

Instantly share code, notes, and snippets.

@sevenseacat
Created September 13, 2013 02:22
Show Gist options
  • Save sevenseacat/6546184 to your computer and use it in GitHub Desktop.
Save sevenseacat/6546184 to your computer and use it in GitHub Desktop.
$ irb
irb(main):001:0> require 'alchemist'
=> true
irb(main):002:0> Alchemist.setup
=> [:absorbed_radiation_dose, :angles, :area, :capacitance, :distance, :dose_equivalent, :electric_charge, :electric_conductance, :electrical_impedance, :electromotive_force, :energy, :frequency, :force, :illuminance, :inductance, :information_storage, :luminous_flux, :luminous_intensity, :magnetic_flux, :magnetic_inductance, :mass, :power, :pressure, :radioactivity, :time, :volume, :density, :temperature]
irb(main):003:0> 1.kb.to.b
=> 999.9999999999999
irb(main):004:0> 1.b.to.kb
=> 1.0
irb(main):005:0> 1.b.to.mb
=> 1.0
irb(main):006:0> 1.kb.to.mb
=> 999.9999999999999
irb(main):007:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment