Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

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