As of version 9.0, unit functionality is built into Mathematica

is a unit of length.


  • To use , you first need to load the Units Package using Needs["Units`"].
  • is equivalent to 9.46073×1015 Meter (SI units).
  • Convert[n LightYear, newunits] converts n LightYear to a form involving units newunits.
  • One is the distance light travels in a year in a vacuum.
  • is typically abbreviated as ly.
New to Mathematica? Find your learning path »
Have a question? Ask support »