> From: Greg Bacon [mailto:gbacon@fly.hiwaay.net] > Sent: Monday, May 01, 2000 14:56 > To: Ronald J Kimball > Cc: Bernie Cosell; fwp@technofile.org > Subject: Re: [FWP] Counting bits from the other end > > > In message <20000501163349.A54803@linguist.dartmouth.edu>, > Ronald J Kimball writes: > > : $n -= 2 ** int(log($n) / log(2)); > > $n &= ~(1 << int( log($n) / log(2) )); This is one of those 'implicit-int' situations, like array indexing. $n &= ~(1 << log($n) / log(2) ); BTW: The personal copies received from this list multiply out of hand. See above. Why not just reply to the list, on the theory that everyone will get it that way anyhow? -- Larry Rosler Hewlett-Packard Laboratories http://www.hpl.hp.com/personal/Larry_Rosler/ lr@hpl.hp.com ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe