Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
& vs %
#5
If you want to get the lower 8 bits use the & operator. It's more clear what is happening in the code. I haven't seen getting the bits that way ( using modulo ). Also, changing the value of the bar above 255 and it will not be the same anymore.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
& vs % - by Skaperen - Nov-29-2017, 03:40 AM
RE: & vs % - by buran - Nov-29-2017, 07:45 AM
RE: & vs % - by DeaD_EyE - Nov-29-2017, 08:14 AM
RE: & vs % - by Skaperen - Nov-29-2017, 08:27 AM
RE: & vs % - by wavic - Nov-29-2017, 09:37 PM
RE: & vs % - by Skaperen - Nov-30-2017, 01:53 AM
RE: & vs % - by wavic - Nov-30-2017, 02:25 AM
RE: & vs % - by Skaperen - Nov-30-2017, 03:04 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020