[Gambas-user] Bit manipulation functions

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Nov 20 17:30:32 CET 2010


because lsr processes 32 bits of the short -9 and not 64 bits of the
> long binary number?
>

Yes, -9 is considered as short.
Try:
? bin(lsr(clng(-9),1), 64)
0111111111111111111111111111111111111111111111111111111111111011

Jussi



More information about the User mailing list