Square Root '^^'
The Square Root operator returns the square root of a value. Square Root can be used in both variable and constant expressions. When used with variable expressions or integer constant expressions, Square Root returns the 32-bit truncated integer result. When used with floating-point constant expressions, Square Root returns the 32-bit single-precision floating-point result. Example:
X := ^^Y
Square Root becomes an assignment operator when it is the sole operator to the left of a variable on a line by itself. For example:
^^Y
This would store the square root of the value of Y back into Y.
Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.