This is not a bug in the documentation. The semantics of // and rem
depends on an internal integer division rounding function (called rnd in
the doc) which can provides 2 different results on negative numbers. So
rnd is only for documentation purpose to explain the behavior of // and rem.
This has nothing to do with round/1 which rounds any number to the
nearest integer.
Daniel
Dave Sworin a écrit :
The arithmetic evaluation is round(E), which works fine, but the example in
my HTML manual for 1.3.0 still uses rnd(E) instead, during the discussion of
using the integer_rounding_function flag. I'm not sure this was reported.
Dave
_______________________________________________
Bug-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-prolog
_______________________________________________
Bug-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-prolog