[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
int pow on Win32 -- and nth1/3
From: |
Fred Bapst |
Subject: |
int pow on Win32 -- and nth1/3 |
Date: |
Mon, 05 Dec 2011 15:01:41 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
Hello,
With gprolog-1.4.0-mingw-x86, I observe the following oddity:
| ?- N is 10^2.
N = 99
yes
The problem does not appear on Linux gprolog-1.4.0 (sorry, I didn't have the
resources to test the latest build on Win32).
And by the way, gprolog-1.4.0 (both Linux and Win32) seems to have introduced
nth1/3 as an (apparently) undocumented "clone" of the nth/3 predicate:
| ?- nth(2,[a,b,c],X).
X = b
yes
| ?- nth1(2,[a,b,c],X).
X = b
yes
Best regards.
- int pow on Win32 -- and nth1/3,
Fred Bapst <=