File TestMod.mo, 203 bytes
(added by Francesco Casella, 7 years ago) |
|
Line | |
---|
1 | model TestMod
|
---|
2 | Integer j, j_mod;
|
---|
3 | Integer k, k_mod;
|
---|
4 | algorithm
|
---|
5 | when initial() then
|
---|
6 | j := -5;
|
---|
7 | j_mod := mod(j,3);
|
---|
8 | end when;
|
---|
9 | equation
|
---|
10 | k = -5;
|
---|
11 | k_mod = mod(k,3);
|
---|
12 | end TestMod;
|
---|
Download in other formats: