Expression And Operators; Assignment Operator; Arithmetic Operator - CipherLab 8 Series User Manual

Hide thumbs Also See for 8 Series:
Table of Contents

Advertisement

3.3 EXPRESSION AND OPERATORS

An expression may be a string or numeric constant, or a variable, or it may be a
combination of constants and variables with operators to produce a single value.
Operators perform mathematical or logical operations. The operators provided by the
CipherLab BASIC Compiler may be divided into four categories, namely, Assignment
Operator, Arithmetic Operators, Relational Operators, and Logical Operators.

3.3.1 ASSIGNMENT OPERATOR

The CipherLab BASIC Compiler supports an assignment operator: "=". For example,
Length% = 100
PI! = 3.14159
Company$ = "CipherLab Co., Ltd."

3.3.2 ARITHMETIC OPERATOR

The arithmetic operators are:
Operator
^
-
*
\
/
+
-
MOD
Chapter 3
Operation
Exponentiation
Negation (unary)
Multiplication
Division (integer)
Division (real)
Addition
Subtraction
Modulo arithmetic
Basics of the CipherLab BASIC Language
Sample Expression
A% = 9^3
A% = -B%
A! = B! * C!
A% = B! \ C!
A! = B! / C!
A% = B% + C%
A% = B% - C%
A% = B% MOD C%
21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

83008000840087008200

Table of Contents