1. Computing
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

Sqrt

unit
System
category
arithmetic routines

declaration
function Sqrt(X: Extended):Extended;

description
Returns the square root of a number.

example

//2 := Sqrt(4);
//3 := Sqrt(9);
//Sqrt(-4)   generates an error :
             Invalid floating point operation

in real code

see also
Sqr,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

©2013 About.com. All rights reserved.