Remote Processing CAMBASIC User Manual

Page 152

Advertising
background image

Comm ands - 119

SQR

Numeric Fun ction

SYNTAX:

n = SQR(m)

PURPOSE:

Calculates the square root of a number.

REMARK S:

m is any positive number.

RELATED:

^ (raise to power of mathem atical function)

EXAMPLE:

PRINT SQR(1.5)
1.22474

ERROR:

< Illegal argument> - when m is negative

Advertising