working with binary numbers with bitwise operators

Alejandro Tejada capellan2000 at yahoo.com
Mon May 31 00:48:20 EDT 2004


on Sun, 30 May 2004
Dar Scott wrote:

> Bugzilla 38 describes a problem in base conversions
> to base 10.
> The baseconvert() function uses a 32 bit
> environment.
> The bit-logical operators use a 32-bit environment.

Now i understand, thanks for this clarification.

> If you need more than 32 bits you might need to
> build up multiple 32-bit numbers 

Could be splitting a big number in two parts
like this?

48 bit number
010011001100001110101010101101100101110111010101

divided in two 24 bit numbers

010011001100001110101010
101101100101110111010101

> or (as you did for shifting) use strings of 0 and 1.
> If you need to use bit shifting (and rotating) with
> the bit logical operators, you might want to make 
> the number conversion.

I think that i'll use strings and custom funtions.

Thanks for your help, Dar.

al

=====
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list