-
-
Notifications
You must be signed in to change notification settings - Fork 30
Units
Arthur Guiot edited this page Sep 8, 2018
·
8 revisions
TheoremJS can help you convert units using the t.units or the t.convert method.
- Area
mm2cm2dm2m2dam2hm2hakm2in2ft2yd2mi2
- Distance / Length
mmcmdmmdamhmkmydftmiinli-
auAstronomical unit -
lyLight year -
NmNautical mile
- Mass
mgcgdggdaghgkgtozlb
- Speed
m/skm/h-
m/h⚠️ Miles / h not meters / h knotft/s
- Temperature
cfk
- Time
mssmhdwmoy
- Volume
mm3mlcm3cldldm3lhlm3dam3hm3km3galfloz
t.units(3, "volume", "l", "mm3") // 3e+6 => BigNumber
t.convert(5, "area", "mi2", "km2") // ~ 12.95 => BigNumber
t.units(1, "speed", "m/s", "km/h") // 3.6 => BigNumber
t.convert(20, "speed", "m/h", "km/h") // ~ 32.19 => BigNumberAny questions? Don't hesitate to create an issue and tell me about your problem 😊.
Copyright © 2017-2018 Arthur Guiot