I have the following statement in prolog (Eclipse CLP):
?-X::1..100, X/5 #= 2, X = 12.
The result is No.
. I want to check that the integer division of X
over 5
is equal to 2
or not. If I write the following statement:
?-X::1..100, X//5 #= 2, X = 12.
I will get the following error:
instantiation fault in //(X{1 .. 100}, 5, _703)
So, the question is how can I check the integer division for the variable X
?