normalizeAngle()

Synopsis

Normalizes the input angle in degrees, to be between 0 and 360.

Syntax

normalizeAngle ( degrees As Number ) As Number 
Argument Type Description
degrees Number Input angle.

Example 1

Intent >normalizeAngle(-90.0) 
--> 270 

Example 2

Intent >normalizeAngle(720) 
--> 1.59027734073176E-14 
Note that this result is not exactly 0.0 (as it should be) because of round off errors.