Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> sqrt find square root of number pp 141</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SQRT                     Find Square Root of Number                  pp 141

 Syntax:  Sqrt (NumVar) ;

 Type:    Real

 Form:    Function

 Purpose:  Returns the square of positive NumVar.

 Notes:    The returned type is always type Real.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          IntVar  : Integer         ;
          RealVar : Real            ;

       BEGIN
          RealVar := Sqrt (IntVar)  ;
          RealVar := Sqrt (RealVar) ;
       END.

See Also: Sqr

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson