This is a simple conversion library
convert.Metric(1, "cm", "m");
=> 0.01
convert.Metric(1, "hm", "inch");
=> 3937.0078740157
convert.Metric(1, "km", "mm");
=> 1000000
convert.Metric("string", "dam", "yard");
=> false
convert.DataUnits(1, "mb", "kb");
=> 1024
convert.DataUnits(1, "byte", "tb");
=> 9.0949470177293e-13
convert.DataUnits("string", "gb", "pb");
=> false
convert.Temperature(1, "c", "k");
=> 274.15
convert.Temperature(1, "n", "c");
=> 3.0303030303030303
convert.Temperature(1, "f", "n");
=> -5.68323
convert.Temperature("string", "k", "f");
=> false
convert.Angle(100,"rad","second");
=> 20626480.624709636
convert.Angle(1009,"deg","rad");
=> 0.000017297613993997318
convert.Angle(1009,"grad","rad");
=> 4.804892776110367e-9
convert.Angle("string", "second", "grad");
=> false
convert.Time(1, "second", "millisecond");
=> 1000
convert.Time(1, "hour", "minute");
=> 60
convert.Time(1, "week", "year");
=> 0.019164955509925
convert.Time("string", "day", "century");
=> false
convert.Energy(1, "j", "kj");
=> 0.001
convert.Energy(1, "kcal", "cal");
=> 1000
convert.Energy(1, "j", "cal");
=> 0.2388458966275
convert.Energy("string", "mj", "j");
=> false
convert.Astronomical(1, "lightSecond", "mile");
=> 186282.39705
convert.Astronomical(1, "au96", "lightYear_julian");
=> 0.000015812507409
convert.Astronomical(1, "km", "lightDay");
=> 3.8606955463e-11
convert.Astronomical("string", "lightYear_traditional", "m");
=> false