Skip to content

Mathematical Constants

Conversion factors for angles and other mathematical operations.

Angle Conversions

DEG2RAD

DEG2RAD module-attribute

DEG2RAD: float = 0.017453292519943295

Convert a string or number to a floating-point number, if possible.

Value: 0.017453292519943295 rad/deg

Converts degrees to radians. Equivalent to π/180.


RAD2DEG

RAD2DEG module-attribute

RAD2DEG: float = 57.29577951308232

Convert a string or number to a floating-point number, if possible.

Value: 57.29577951308232 deg/rad

Converts radians to degrees. Equivalent to 180/π.


AS2RAD

AS2RAD module-attribute

AS2RAD: float = 4.84813681109536e-06

Convert a string or number to a floating-point number, if possible.

Value: 4.84813681109536e-06 rad/arcsec

Converts arc seconds to radians. Equivalent to π/(180 × 3600).


RAD2AS

RAD2AS module-attribute

RAD2AS: float = 206264.80624709636

Convert a string or number to a floating-point number, if possible.

Value: 206264.80624709636 arcsec/rad

Converts radians to arc seconds. Equivalent to (180 × 3600)/π.