Convert.js

Star

Astronomical Expression Conversion


Usage
convert.Astronomical(data, source, target)

Parameters:
Data => Value to be converted
Source => Current unit
Target => Output unit

Source / Target Units:
  • au96 => Astronomical unit (1996)
  • km => Kilometers
  • lightsecond => Light seconds
  • lightminute => Light minutes
  • lighthour => Light hours
  • lightday => Light days
  • lightyear_julian => Light years (julian)
  • lightyear_tropical => Light years (tropical)
  • parsec => Parsec
  • m => Meters
  • mile => Miles

Examples: