rand(360) roundTo( 2, toRadians(NUM_DEGREES) ) rand( commonAngles.length ) commonAngles[COMMON_INDEX].deg commonAngles[COMMON_INDEX].rad

Convert the angle COMMON_RADIANS radians into degrees.

COMMON_DEGREES\Large{^\circ}

To convert from radians to degrees, you multiply by 180^{\circ} and then divide by \pi.

COMMON_RADIANS \times \frac{180^{\circ}}{\pi}

COMMON_DEGREES^{\circ}

Convert the angle NUM_RADIANS radians into degrees. (Round to the nearest degree.)

NUM_DEGREES\Large{^\circ}

To convert from radians to degrees, you multiply by 180^{\circ} and then divide by \pi.

NUM_RADIANS \times \frac{180^{\circ}}{\pi}

NUM_DEGREES^{\circ} (round to nearest integer here)