Usage Example for Bit Function?

if ((nr & bit(15)) == bit(15))

Can you explain the condition here in plain english? i get confused by the and operator..

Work from the inside out. nr & bit(15) will produce a 16 bit value that has the uppermost bit set (the rest will be zero) if the value of nr is negative or zero if the value of nr is zero or positive. Take that variable and test it for equality with another value (bit(15)) which is binary 1000000000000000. In this example it will test true.

Jim.