Page 1 of 1

real number in 64-bit

Posted: 30 Oct 2015 16:42
by loveProlog
I am using build 7402 and converted a project from 32-bit to 64-bits.
Noticed that calculations involving real number produced an incorrect results in 64-bit.

Example:

Code: Select all

domains     r = real.   predicates    calcNums : (r,r, r[out]).   clauses   calcNumbs(Num1,Num2,Results):-      TmpNum = Num1+Num2,      Results = TmpNum * 2.
In the example, TmpNum is real rather than r (user-defined domain) and gets an incorrect result.
But it worked fine in 32-bit.

Is there any changes in 64-bit on how to handle this situation.

Thank you for your replay in advance.

Posted: 30 Oct 2015 20:06
by Thomas Linder Puls
I get the same types and result in both 32 and 64 bit, can you provide more information?