[Tutor] testing the bits of a binary number

Phil phillor9 at gmail.com
Tue Apr 26 07:20:18 EDT 2022


On 26/4/22 21:14, alan.gauld at yahoo.co.uk wrote:
> Bit operations will be fastest but you could convert to a binary 
> string and do a character search if you think that is more elegant.

Thank you Alan for your reply and it looks like bit shifting is the only 
real way to solve the problem.

-- 

Regards,
Phil



More information about the Tutor mailing list