User Manual

RMC70/150 and RMCTools User Manual
Remarks
Notice a is in radians. To convert a value from degrees to radians, multiply the degrees
value by
π/180. The RMC has an M_PI constant for π.
Examples
TAN(M_PI / 4) returns 1.0
TAN(45 * M_PI / 180) returns 1.0
5.14.2.44. TANH Function
TANH(a)
Returns the hyperbolic tangent of a.
Parameters
a (REAL)
The input value.
Return Value
Returns a REAL.
5.14.2.45. TRUNC Function
TRUNC (a)
Rounds a to an integer towards zero and returns a DINT data type.
Parameters
a (REAL)
The input value.
Return Value
Returns a DINT.
Examples
TRUNC(34.78) returns 34
TRUNC(-3.46) returns -3
TRUNC(-3.99) returns -3
5.14.2.46. TRUNC_REAL Function
TRUNC_REAL (a)
Rounds a to an integer towards zero.
Parameters
362 Delta Computer Systems, Inc.