Comment #6 on issue 516 by rezeden...@gmail.com: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516
thank you.
--
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:
Updates:
Status: WontFix
Comment #5 on issue 516 by benoit.m...@gmail.com: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516
Yes. Read http://en.wikipedia.org/wiki/Two%27s_complement to learn how
negative numbers are represented in memory and in the CPU.
Russian link:
h
Comment #4 on issue 516 by rezeden...@gmail.com: 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.
Negative numbers are inverted, all bits, not just the sign
I does work with negative numbers, but I don't think you understand how
binary system works with negative numbers.
? bin(-1,8)
? bin(-2,8)
1110
? bset(-2,0)
-1
? bin(bset(-2,0),8)
Perhaps you are looking for BClr?
http://www.gambasdoc.org/help/lang/bclr?v3
? bin(bclr(-1,
Comment #3 on issue 516 by jussi.la...@gmail.com: 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)
? bin(-2,8)
1110
? bset(-2,0)
-1
? b
Comment #2 on issue 516 by rezeden...@gmail.com: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516
Copy what happens in the debug console. (Копирую то что происходит у меня в
консоли отладки.)
? bset(-1,2)
-1
I do not know this bug or feature and should not work with negative
Comment #1 on issue 516 by benoit.m...@gmail.com: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516
If r=-1, all bits are set, so BSet will do nothing. Everything is normal,
isn't it?
--
You received this message because this project is configured to send all
issue notificati
Status: New
Owner:
Labels: Version-3.1.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 516 by rezeden...@gmail.com: bug BSet -1
http://code.google.com/p/gambas/issues/detail?id=516
1) Function BSet does not work with negative numbers (не работает с
о