Debian Codegraph @

tests/spec/unit/output/show_float.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 _output_item: " 123.46@\n123.46 @\n123 @\n"
7 ***/
8
9 float: f = 123.45679123;
10 solve satisfy;
11 output [
12 show_float(8, 2, f), "@\n",
13 show_float(-8, 2, f), "@\n",
14 show_float(-8, 0, f), "@\n",
15 ];