real number in 64-bit

Discussions related to Visual Prolog
Posts: 8
Joined: 9 Jul 2014 12:53

real number in 64-bit

Unread post by loveProlog » 30 Oct 2015 16:42

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.


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.

User avatar
Thomas Linder Puls
VIP Member
Posts: 1159
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 30 Oct 2015 20:06

I get the same types and result in both 32 and 64 bit, can you provide more information?
Regards Thomas Linder Puls

Post Reply