3.7.5.79 System.Math

LabTalk Object Type:

Utility

The math object is a sub-object of the system object. The math object property allows you to read and alter the angular unit setting which is set in the OPTION.CNF file. This setting can also be accessed in the Options dialog box.


Properties:

Property Access Description
system.math.angularUnits Read/write,
numeric

Angular units: 0 = radian, 1 = degree, 2 = grad.


Examples:

This script prints a warning to an Attention box if radians are not being used as the angular units.

if (system.math.AngularUnits != 0) 
{ 
      type -b "Warning: units are not radians!" ;
};