Home Page


BASIC Handbook

Basic2 Commands
Disk Drives
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite
ASCII and CHR$ Codes

eMail
email5-commodorecheetah.co.uk

Note: You will need to replace the '-' with the @ symbol.
This is to minimize spam.

My BASIC Quick Reference Guide

SQR()
Abbreviation: S <SHIFT+Q>

TYPE: Floating-Point Function
FORMAT: SQR (<numeric>)

Action: SQR gives you the value of the SQuare Root of the <numeric> argument. The value of the argument must not be negative, or the BASIC error message ?ILLEGAL QUANTITY will happen.

EXAMPLE of SQR Function:

FOR J = 2 TO 5: PRINT J*S, SQR(J*5): NEXT

10 3.16227766
15 3.87298335
20 4.47213595
25 5

READY


Commodore Cheetah made by Allen Monks, started in the year 2000.