Section 5. Real-Time Tools
Constant Description
nsecPerDay Number of nanoseconds in a day
nsecPerWeek Number of nanoseconds in a week
5.2.1.4.5 Functions
The following functions show the use and placement of the numbers the
function operates on. The parentheses are not required unless there are two or
more parameter values. (e.g., ATN2(y,x))
Function Description
ABS(x) Returns the absolute value of a number.
ACOS(x) Returns the arc cosine of a number.
ASIN(x) Returns the arc sine of a number.
ATN(x) Returns the arc tangent of a number.
ATN2(y,x) Returns the arctangent of y/x.
CEILING(x) Rounds a number up to an integer value.
COS(x) Returns the cosine of a number.
COSH(x) Returns the hyperbolic cosine of a number.
CSGN(x) Changes the sign of a number by multiplying by –1.0.
EXP(x) Returns e raised to the x power.
FIX(x) Returns the integer portion of a number. If the number
is a negative, the first negative integer greater than or
equal to the number is returned.
FLOOR(x) Rounds a number down to an integer value.
FRAC(x) Returns the fraction part of a number.
FormatFloat(x,y) Converts a floating point value into a string.
FormatFloatL(x,y) Converts a floating point value into a string and applies
any rules associated with the locale of the computer
running RTMC.
INT(x) Returns the integer portion of a number. If the number
is a negative, the first negative integer less than or equal
to the number is returned.
IsFinite(x) Determines if a number is finite.
5-48