summaryrefslogtreecommitdiffstats
path: root/test/04-function-iseven.txt
blob: aa224e2bb7ebaa54e58886c79e3e523ecf75bc87 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%% Test for ISEVEN and ISODD functions.
%mode init
A2=10.2
A3=11.4
B2=ISEVEN(2)
B3=ISEVEN(3)
B4=ISEVEN(1.2)
B5=ISEVEN(4.2)
B6=ISEVEN(4.9)
B7=ISEVEN(-4.9)
B8=ISEVEN(A2)
B9=ISEVEN(A3)
C2=ISODD(2)
C3=ISODD(3)
C4=ISODD(1.2)
C5=ISODD(4.2)
C6=ISODD(4.9)
C7=ISODD(-4.9)
C8=ISODD(A2)
C9=ISODD(A3)
%calc
%mode result
B2=true
B3=false
B4=false
B5=true
B6=true
B7=true
B8=true
B9=false
C2=false
C3=true
C4=true
C5=false
C6=false
C7=false
C8=false
C9=true
%check
%exit