User:Tcncv/Geodist/DMStoRadians

This is a utility template for converting degrees, minutes, and seconds plus a N/S or E/W indication to radians. The value may be a signed amount of degrees or a combination of unsigned degrees, minutes, and seconds with a N/S/E/W indication. North and east are positive; south and west are negative.

All of the following should be equivalent and equal to 30 degrees = pi/4 radians = All of the following should be equivalent and equal to -22.5 degrees = -pi/8 radians = Note that the following are not equivalent
 * 30 =
 * 30 =
 * 30 =
 * 30 =
 * 30 =
 * 29 =
 * 29 =
 * -22.5 =
 * -22.5 =
 * -22 =
 * 22 =
 * 22 =
 * 22 =
 * 22 =
 * 21 =
 * 22 =
 * 44 =
 * -44 =