CRE Programmer's Guide
Math Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
7-2
Standard Math Functions
Table 7-1. TNS CRE Standard Math Functions (page 1 of 2)
Function 
Name Function Action
Arccos
 on 
page 7-4
Returns an arccosine expressed in radians.
Arcsin
 on 
page 7-5
Returns an arcsine expressed in radians.
Arctan
 on 
page 7-5
Returns an arctangent expressed in radians.
Arctan2
 on 
page 7-6
Returns the arctangent, expressed in radians, of the quotient of its 
parameters.
Cos
 on 
page 7-7
Returns the cosine of an angle whose size is expressed in radians.
Cosh
 on 
page 7-7
Returns a hyperbolic cosine.
Exp
 on 
page 7-8
Returns the exponential function (base e) of its parameter.
Ln
 on 
page 7-8
Returns a natural (base e) logarithm.
Log10
 on 
page 7-9
Returns a common (base 10) logarithm.
Lower
 on 
page 7-10
Returns the largest integer that is not greater than the value of its 
parameter.
Mod
 on 
page 7-11
Returns the remainder of an integer division calculation.
Normalize
 on 
page 7-12
Splits a floating-point number into a normalized fraction and an integral 
power of two.
Odd
 on 
page 7-13
Determines whether a value is even or odd.
Positive_Diff
on page 7-13
Returns the arithmetic difference between two numbers.
Power
 on 
page 7-15
Returns a number raised to a specified power.
Power2
 on 
page 7-16
Multiplies a number by an integral power of two.
Random_set 
and 
Random_next 
on page 7-17
Establishes the seed—the initial value—in a pseudo-random number 
sequence.
Returns a pseudo-random number.
Round
 on 
page 7-17
Returns the nearest whole number.










