Comment #3 on issue 516 by [email protected]: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516

I does work with negative numbers, but I don't think you understand how  
binary system works with negative numbers.

? bin(-1,8)
11111111

? bin(-2,8)
11111110

? bset(-2,0)
-1

? bin(bset(-2,0),8)
11111111

Perhaps you are looking for BClr?
http://www.gambasdoc.org/help/lang/bclr?v3

? bin(bclr(-1,0),8)
11111110

? bclr(-1,2)
-5


-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to