Re: round(E) but still rnd(-1.5) in the example in HTML manual 1.3.0

Daniel Diaz <[email protected]> Sun, 02 Nov 2008 10:50:41 +0100
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
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
>
>