EasyManua.ls Logo

Moog SmartMotor - Page 718

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 718 of 909
SQRT(value)
Integer Square Root
APPLICATION: Math function
DESCRIPTION: Gets (reads) the integer square root
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: RSQRT(value)
WRITE: Read only
LANGUAGE ACCESS: N/A
UNITS: Positive integer
RANGE OF VALUES: Input: Positive integer 0 - 2147483647
Output:Positive integer 0 - 46340
TYPICAL VALUES: Input: Positive integer 0 - 2147483647
Output:Positive integer 0 - 46340
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: N/A
DETAILED DESCRIPTION:
NOTE: For a floating-point version, see FSQRT(value) on page 452.
The SQRT command gets (reads) the integer square root of a variable or value as follows:
=SQRT(x)
where x = any positive integer ≥0.
The integer square root of x is the greatest integer the square root of x. For example, if x is
6, the integer square root is 2 because 2 is the greatest integer the square root of 6.
Therefore, all inputs for x from 4 through 8 will give the result 2; when x is 9 through 15, the
result changes to 3.
Part 2: Commands: SQRT(value)

Table of Contents

Related product manuals