Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 10th Oct 2002 16:08
I tried the binary system:
PRINT %10
On AMD K6 II 500, ASUS P5AB Mainboard with DirectX 8.0, 192 Mb Ram, 4 Mb ATI Card, Win98SE I got the result "2", which is correct!
On AMD Athlon TB 1200, Abit KT7RAID Mainboard, DirectX 8.1, 512 Mb Ram, 32 Mb Geforce 2 MX Dual Display Video, Win 98SE I got "37294588305604610" as result, which differs a bit from the first result. With Windows 2000 I got on the same computer "40670153427386370" as result, which is a bit wrong too. In full screen modeĀ“(Still Win2000), the result was "40668710318374914". Did I something wrong? If yes, please explain what!

Funny! I think, I should not use binary functions anymore, or it will not work on some computers. I wonder why DB/DBP does not use the function BIN() for converting binary to decimal (Like Sinclair BASIC, which is excellent too).
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 10th Oct 2002 17:29
That has to be a bug, however if you do this:-

d = %10
PRINT d

it works OK, which should get round any problems you have using binary code.
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 10th Oct 2002 19:14
Okay, thank you, this works for me too.
But other question:
How does XOR work?
x=24 XOR 255 did not comile, and if I understand it correctly, this is the correct syntax for using it.

Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 12th Oct 2002 18:17
Yes, that is also a bug (theres lots of them, but they are being ironed out, check out some of the release 2 links).
OR and AND seem to work, XOR should work but gives a syntax error.
If XOR is essential to what you are doing you should be able to do this:-
((A OR B) - (A AND B))
Which Gives the same result
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 14th Oct 2002 20:54
Thanks, it is the same, but a bit slower. I hope, Patch 2 will fix this.

Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 16th Oct 2002 22:02
'Glad to be of service'

Login to post a reply

Server time is: 2024-04-25 22:14:43
Your offset time is: 2024-04-25 22:14:43