Re: Bitwise operators

2006-08-30 Thread Kay Smoljak
Thanks everyone for your input - I think we'll be using multiple fields to get the extra bits. Cheers, K. -- Kay Smoljak business: www.cleverstarfish.com standards: kay.zombiecoder.com coldfusion: kay.smoljak.com personal: goatlady.wordpress.com

Re: Bitwise operators

2006-08-30 Thread Cameron Childress
r these and is > > talking about possibly going higher, but according to the documentation > > ColdFusion's bitwise functions only operate on 32 bit integers. Although I > > didn't do any math past year 10 at high school, I'm pretty sure that means > > 31 possib

Re: Bitwise operators

2006-08-30 Thread Cameron Childress
any > math past year 10 at high school, I'm pretty sure that means 31 possible > categories (discounting one bit for the sign), although the number of > *combinations* of categories is massive. > > I'm assuming the next step then is to look at Java equivalents to CF'

Re: Bitwise operators

2006-08-29 Thread Auke van Leeuwen
I would probably have a look at this http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html xFlags = createObject( "java", "java.math.BigInteger" ).init( "9223372036854775808" ); That's 2^63 if you didn't quite get that immediately ;-) I dunno this is untested, top of my head code,

RE: Bitwise operators

2006-08-29 Thread Phillip Holmes
: Tuesday, August 29, 2006 11:57 PM To: CF-Talk Subject: Re: Bitwise operators Phillip Holmes wrote: >Are you trying to decompose the bitmasks? I haven't started that bit yet, but it will be everything - reading and writing them. So I guess I'll need AND, NOT, OR and possibly XOR as we

RE: Bitwise operators

2006-08-29 Thread Phillip Holmes
Kay, I'll assume he hands you a number like 8 and you have to determine that it contains categories 1,2 and 4. IMHO, your DB engineer should be doing the decomposition in SQL and you should make them provide a proc to do this. What you're trying to do *IS* possible in CF. You can't perform certa

Re: Bitwise operators

2006-08-29 Thread Kay Smoljak
Phillip Holmes wrote: >Are you trying to decompose the bitmasks? I haven't started that bit yet, but it will be everything - reading and writing them. So I guess I'll need AND, NOT, OR and possibly XOR as well, that will work on 64 bit integers. Just looking at the CF docs, there's BitMask func

RE: Bitwise operators

2006-08-29 Thread Phillip Holmes
Kay, Are you trying to decompose the bitmasks? Warmest Regards, Phillip B. Holmes http://phillipholmes.com --> I'm assuming the next step then is to look at Java equivalents to CF's bitwise operators. Is there a wrapper CFC available (*hopeful*) or can anyone giv

Bitwise operators

2006-08-29 Thread Kay Smoljak
ssive. I'm assuming the next step then is to look at Java equivalents to CF's bitwise operators. Is there a wrapper CFC available (*hopeful*) or can anyone give me any tips or pointers (or tell me I'm dumb and I've overlooked something obvious)? Thanks heaps! K. -- Kay