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.

DarkBASIC Professional Discussion / [LOCKED] Double Integer Question

Author
Message
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 10th Oct 2003 00:58
Not used to handling Double Integers but, is it at all possible to successfuly use a Double Integer?



...that's assuming I have interpreted what a Double Integer is correctly, a 64 bit value.

I'm asking because, if there is a way then this would be an ideal datatype for storing information on an 8x8 game board. But I can't seem to get them to work very well.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Oct 2003 01:06 Edited at: 10th Oct 2003 01:09
It does seem that the bit comparisons dont work with double longs - try the following :



Should print 1, but actually prints 0. It seems to be the second parameter that causes the problem.


Avatar & Logo by Indi. Insert witty comment here...
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 10th Oct 2003 01:10
Bug or a limitation in 32 bit operations?

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Oct 2003 01:13
Probably the former...


Avatar & Logo by Indi. Insert witty comment here...
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 10th Oct 2003 01:15
Righty ho, off to the bug forum I go

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.

Login to post a reply

Server time is: 2026-07-26 05:02:11
Your offset time is: 2026-07-26 05:02:11