IB Statements/sqrt

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Badge (Talk | contribs)
(New page: '''SQRT function''' '''Syntax:''' SQRT(numeric-argument) '''Discussion:''' The SQRT function returns the square root of a numeric-argument. '''History:''' This function is avail...)
Newer edit →

Revision as of 10:28, 22 May 2009

SQRT function

Syntax: SQRT(numeric-argument)

Discussion: The SQRT function returns the square root of a numeric-argument.

History: This function is available in Comet 504 and greater, and is supported only on systems containing a math co-processor (i.e., 80287, 80387) or built-in math co-processor (i.e., 486, Pentium, Pentium Pro, etc.). Example:

 LENGTH 8.2 & LOCAL A, B
 .
 .
 .
 PRINT (0) "ENTER A NUMBER (######.##):"
 INPUT (0) A
 B = SQRT(A)
 PRINT (0) "THE SQUARE ROOT IS:";B
Personal tools