division by 7 efficiently ???
Paddy
paddy3118 at netscape.net
Thu Feb 1 00:36:18 EST 2007
More information about the Python-list mailing list
Thu Feb 1 00:36:18 EST 2007
- Previous message (by thread): division by 7 efficiently ???
- Next message (by thread): division by 7 efficiently ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Feb 1, 2:42 am, krypto.wiz... at gmail.com wrote: > How to divide a number by 7 efficiently without using - or / operator. > We can use the bit operators. I was thinking about bit shift operator > but I don't know the correct answer. >>> int.__div__(14,2) 7 >>> Not a minus or division operator in sight ;-) - Paddy.
- Previous message (by thread): division by 7 efficiently ???
- Next message (by thread): division by 7 efficiently ???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list