How to add your knowledge

normalizeAngle()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2

    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.