Metrologic IS1000 Series Guía de usuario Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 198
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
26
CipherLab BASIC Compiler
User's Guide
Syntax
REM remark
' remark
Remarks
"remark" may be any sequence of characters.
The BASIC compiler will ignore whatever follows the REM or ' until end of the
line.
Example
REM This is a comment. ' 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!
' result: PI = 3.14 (by default)
' result: PI = 3.141590
' result: PI = 3.14
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.
Value Meaning
1
0
-1
N > 0
N = 0
N < 0
N" is a numeric expression.
Example
A% = SGN(100)
B% = SGN(-1.5)
' A% = 1
' B% = -1
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 197 198

Comentarios a estos manuales

Sin comentarios