Director supports the usual complement of math functions, as shown in Table 82. Refer to Table 83 and Table 84 for exponentiation and trigonometric functions.
Table 82. Math Functions
Lingo Keyword 
Usage and Range 

^{[a]}  
^{[b]}  
^{[c]}  
abs() 
Calculates the absolute value of a number. Returns float or integer. Used to calculate unsigned values, such as distances. 
add() 
The add command pertains only to lists and is not a mathematical function. See the “+” operator. 
charToNum()^{[a]} 
Converts ASCII character to ASCII code. See numToChar(). 

Constant equivalent to zero (0). See 
float() 
Converts string or integer to floatingpoint value. See the floatPrecision. 
floatP() 
Returns 
the floatPrecision^{[b]} 
Determines the number of decimal places used to display floats (default is 4). Does not affect calculation accuracy. 
INF or INF^{[b]} 
Indicates an overflow condition caused by a number larger than maximum allowed float or an undefined value. 
integer() 
Rounds floats to the nearest integer. integer(.5) is rounded to −1, not zero. Use value() to convert strings first. 
integerP() 
Returns 
max() 
Returns maximum number from a list or commadelimited series. Also works with strings. 
the maxInteger^{[b]} 
Returns the maximum supported integer (2147483647), which equals 2^{31}−1. 
min() 
Returns minimum number from a list or commadelimited series. Also works with strings. 
mod 
Modulo division ... 
No credit card required