Ticket #4939: TestMod.mo

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