| 1 |
/*** |
| 2 |
!Test |
| 3 |
expected: |
| 4 |
- !Result |
| 5 |
solution: !Solution |
| 6 |
y: 4 |
| 7 |
***/ |
| 8 |
|
| 9 |
% Check that the MiniZinc round builtin operation. |
| 10 |
% (mzn2fzn 1.1.3 didn't implement it.) |
| 11 |
% |
| 12 |
par float: x = 3.6; |
| 13 |
var int: y :: add_to_output = round(x); |
| 14 |
solve satisfy; |
| 15 |
output ["y = ", show(y), ";\n"]; |