There are 9 base units that are supported:
s
for second [time]m
for meter [distance]g
for gram [mass]A
for ampere [current]K
for kelvin [temperature]cd
for candela [light intensity]rad
for radian and deg
for degree [angle]sr
for steradian and deg2
for square degree [angle but 3d]dB
for decibel [amplitude]There are also some composite units we decided to support for conveniency:
Hz
for hertz [frequency]N
for newton [force]Pa
for pascal [pressure]J
for joule [energy/work/heat]W
for watt [power]V
for volt [voltage]F
for farad [capacitance]Ω
/ohm
for ohm [resistance]There are also other units that the language accepts. A function generally outputs in the same unit that it gets, but doing any arithmetic with the below units (except seconds) will cause them to be converted to above units. Here are the other units:
min
for minute [time]h
for hour [time]AE
for eon (aeon) [time]au
for astronomical unit [distance]in
for inch [distance]pc
for parsec [distance]ft
for foot [distance]yd
for yard [distance]
mi
for mile [distance]ly
for light-year [distance]ha
for hectare [area]L
for litre [volume]atm
for atmosphere [pressure]cal
for calorie [energy/work/heat]mmHg
for mm of mercury [pressure]lb
for pound [mass]
eV
for electron volts [energy]kgf
for kilogram force [force]To learn more HTML/CSS, check out these tutorials!