Skip to content

mp_units::astronomy

Units commonly used in astronomy beyond the IAU values

Description

It holds units such as the light-year, the jansky, and the sidereal day. The IAU nominal values are in iau.

using astronomy::unit_symbols::ly;

quantity distance = 4.24 * ly;
quantity in_kilometres = distance.in(km);  // 4.01135e+13 km

Types

Variables

See Also