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> sqr find square of number pp 141</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SQR                        Find Square of Number                     pp 141

 Syntax:  Sqr (NumVar) ;

 Type:    Integer or Real

 Form:    Function

 Purpose:  Returns the square of NumVar.

 Notes:    The returned type is the same is the argument type.


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


 Usage:
       VAR
          IntVar  : Integer        ;
          RealVar : Real           ;

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

See Also: Sqrt

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