| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== SQRT (return square root) ====== | [[sqlcallback register or unregister a sqlcallbackinterface.htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[start return new execution thread .htm|{{btn_next_n.gif|Next page}}]] | | || **SQRT(**//expression//**)** {{blk2blue.jpg|blk2blue.jpg}} | **SQRT** | Returns square root. | | //expression// | A numeric constant, variable, or expression. If the value of the expression is less than zero, the return value is zero. | The **SQRT** procedure returns the square root of the //expression//. If X represents any positive real number, the square root of X is a number that, when multiplied by itself, produces a product equal to X. **Return Data Type:     **REAL **Example:** Length = SQRT(X^2 + Y^2) !Find the distance from 0,0 to x,y (pythagorean theorem)