Type declaration characters, Operators, Order of operations – BrightSign HD2000 BrightScript Reference Guide User Manual

Page 7

Advertising
background image

7

BrightScript> ?type(d)
rotFLOAT

Type Declaration Characters

Character Type

Examples

$

String

A$, ZZ$

%

Integer

A1%, SUM%

!

Single-Precision (float)

B!, N1!

#

Double-Precision (double)

A#, 1/3#

D

Double-Precision ( exponential notation)

1.23456789D-12

E

Single-Precision (exponential notation)

1.23456E+30

Operators

+

Add

-

Subtract

*

Multiply

/

Divide

^

exponentiation (e.g., 2^3 = 8)

+
concatenate
(string
together)

"2" + "2"= "22"

<

is less than

>

is greater than

=

is equal to

< = or = <

is less than or equal to

> = or = >

is greater than or equal to

< >

does not equal

NOT

Not equal

AND

Both must be true

OR

Either one must be true

Order of Operations

Operations in the innermost level of parentheses are performed first, then evaluation proceeds to the next
level out, etc. Operations on the same nesting level are performed according to the following hierarchy:

Advertising
This manual is related to the following products: