git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
16 lines
268 B
MiniZinc
16 lines
268 B
MiniZinc
/***
|
|
!Test
|
|
expected:
|
|
- !Result
|
|
solution: !Solution
|
|
y: 4
|
|
***/
|
|
|
|
% Check that the MiniZinc round builtin operation.
|
|
% (mzn2fzn 1.1.3 didn't implement it.)
|
|
%
|
|
par float: x = 3.6;
|
|
var int: y :: add_to_output = round(x);
|
|
solve satisfy;
|
|
output ["y = ", show(y), ";\n"];
|