aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/tests/math.lingo
blob: f38b061b6ac0bcb261f071e091db49bb19b68023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if random(4) > 2 then put 1000
set z = 5.5
set z1 = 2
set z2 = z / z1
put z
put z1
put z2
put integer(z2)
put cos(z2)

set x = 2 + 3 * (4 / 2)
put x

put power(2, 8)
put power(2, 8, 0)
put power(2)
updatestage

-- Type conversion
put (1024/4096)*100         -- 0
put (1024/4096)*100.0       -- 0.0
put ((1024*1.0)/4096)*100.0 -- 25.0

put the sqrt of 9