omron — Numeric Value Functions

Numeric Value Functions Numeric Value Functions The functions listed in the following table provide trigonometric, statistical, and data type conversion operations. For additional details on arithmetic processing, see Data Types and Operators on page 37. Numeric Value Functions Examples of Arithmetic Functions The instructions: eV+Language User's Guide, v2.x, 18318-000 Rev A Page 85 Keyword Function ABS Return absolute value. ATAN2 Return the size of the angle (in degrees) that has its trigonometric tangent equal to value 1/value 2. _ _ BCD Convert a real value to Binary Coded Decimal (BCD) format. COS Return the trigonometric cosine of a given angle.

DCB Convert BCD digits into an equivalent integer value. FRACT Return the fractional part of the argument. INT Return the integer part of the value. MAX Return the maximum value contained in the list of values. MIN Return the minimum value contained in the list of values. OUTSIDE Test a value to see if it is outside a specified range. PI Return the value of the mathematical constant pi (3.141593). RANDOM Return a pseudorandom number. SIGN Return the value 1 with the sign of the value parameter. SIN Return the trigonometric sine of a given angle. SQR Return the square of the parameter. SQRT Return the square root of the parameter.