bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

absolute value of min_integer a negative number?


From: Dave Sworin
Subject: absolute value of min_integer a negative number?
Date: Wed, 29 Oct 2008 02:06:11 -0700 (PDT)

I ran the following in gprolog 1.3.0.  (I typed this in by hand.)
--------------------------------------------------
| ?- current_prolog_flag(min_integer,MIN_INTEGER),X is abs(MIN_INTEGER).
 
MIN_INTEGER = -268435456
X = -268435456
 
yes
| ?-
--------------------------------------------------
Can someone check this on another computer?  I was working under Fedora Core 4,
using the kernel 2.6.11-1.1369_FC4smp on a Pentium 4 processor with
Hyper-Threading Technology.  I was pretty surprised to see the result of an absolute
value that is negative.
 
Dave
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]