Why, the result is not the same?

Just starting out? Need help? Post your questions and find answers here.
j50501313
User
User
Posts: 20
Joined: Fri Oct 23, 2009 11:51 am

Why, the result is not the same?

Post by j50501313 »

Code: Select all


ipnum.q = -632473845
depth.l =  29

Debug (-632473845  - $FFFFFFFF) And (1 << 29)

Debug (ipnum - $FFFFFFFF) And (1 << depth )

Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Why, the result is not the same?

Post by Fred »

'And' and other logical operands are not supported in numeric expressions.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Why, the result is not the same?

Post by Kaeru Gaman »

Code: Select all

ipnum.q = -632473845
depth.l =  29

Debug (-632473845  - $FFFFFFFF) & (1 << 29)

Debug (ipnum - $FFFFFFFF) & (1 << depth )
both debug Zero.
oh... and have a nice day.
j50501313
User
User
Posts: 20
Joined: Fri Oct 23, 2009 11:51 am

Re: Why, the result is not the same?

Post by j50501313 »

Thanks
Post Reply