Determining combination of bits

Diez B. Roggisch deetsNOSPAM at web.de
Mon Nov 8 18:50:02 EST 2004


> 
> The least significant bit of 110 is this one here -----+
>                                ^                       |
>                                |                       |
>                                +-----------------------+
> 
> It's a 0 (zero).
> 
> What I think you're trying to say is something like the value
> of the rightmost 1.

Yup.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list