On 17.12.2021 14:10, Kenny McCormack wrote:
If you want to use 255 (i.e., hex FF), then you have to use an 'and' operator.
i.e., either of:
12345 % 256
or:
12345 & 255
Yep, just a typical well known careless mistake. In the same vein
as implementing the integer division
x div 2 # x/2
by
x shr 1 # x>>1
but writing by accident x>>2 (a careless mistake I made 35 years
ago in a test and still recall); a favorable reader will understand
the intention, but a computer will merciless execute it.
Janis
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)