[Gambas-user] Bit manipulation functions

Demosthenes Koptsis demosthenesk at ...626...
Sat Nov 20 17:47:26 CET 2010


Great! it's easy!

Thanks very much!

On Sat, 2010-11-20 at 18:30 +0200, Jussi Lahtinen wrote:
> 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
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list