hex - I need to understand some hexadecimal notation -
I have to do some bitwork operation to check conflicts for my game, but, I stumble into some hexadecimal notation By using the binary trick, we can do a simple and y coordinate
Y = Y & amp; $ Fffff0 , and this will get us rid of less bits so that the value of 16 will be a valuable one, and keeping it out of collision, and back at 64; Since
% 1001000 (68) & amp; $ FEFFF 0 =% 1000000 (64) Another formula:
$ code = $ fffffff0 = 4294967280 = ~ $ F = ~ $ 15 $ ffffffe0 = 4294967264 = ~ $ 1F = ~ 31
What kind of hexadecimal marking is this? What does '$' mean?
~ is the operator for the operation of the operation not . What it does is to turn all the bits into 0 become 1 and 1 is formed.
$ before the value, tells the compiler a hexadecimal number without it, fffffff0 will be treated as a variable name.
So you can see that 15 mean 15 decimal and f hexadecimal, $ 15 Is 15 hexadecimal and 21 decimal.
Comments
Post a Comment