CipherLab 8 Series User Manual page 43

Hide thumbs Also See for 8 Series:
Table of Contents

Advertisement

REM
Purpose
To insert explanatory remarks in a program.
Syntax
REM remark
' remark
Remarks
"remark" may be any sequence of characters.
The BASIC compiler will ignore whatever follows REM or the apostrophe (') until
end of the line.
Example
REM This is a comment.
SET_PRECISION
Purpose
To set the precision of the decimal points for printing real number expressions.
Syntax
SET_PRECISION(N%)
Remarks
"N%" is a numeric expression in the range of 0 to 6.
The precision is set to two digits by default.
Example
PI! = 3.14159
PRINT "PI = ", PI!
SET_PRECISION(6)
PRINT "PI = ", PI!
SET_PRECISION(2)
PRINT "PI = ", PI!
SGN
Purpose
To return an indication of the mathematical sign (+ or -) of a given numeric
expression.
Syntax
A% = SGN(N)
Remarks
"A%" is an integer variable to be assigned to the result.
A%
1
0
-1
"N" is a numeric expression.
Example
A% = SGN(100)
B% = SGN(-1.5)
Meaning
N > 0
N = 0
N < 0
Chapter 4
' This is a comment.
' result: PI = 3.14 (by default)
' result: PI = 3.141590
' result: PI = 3.14
' A% = 1
' B% = -1
BASIC Commands
31

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 8 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

83008000840087008200

Table of Contents