Python Forum
Read bit by bit from a 128 bit number
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read bit by bit from a 128 bit number
#2
You've passed a very big number to your function: 10100010 wasn't treated as you expected, but as ten millions etc... Use get_bit(0b10100010,i) instead.
Reply


Messages In This Thread
Read bit by bit from a 128 bit number - by vdhingra - Apr-15-2019, 11:48 PM
RE: Read bit by bit from a 128 bit number - by scidam - Apr-16-2019, 12:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read directory listing of files and parse out the highest number? cubangt 5 2,462 Sep-28-2022, 10:15 PM
Last Post: Larz60+
  csv.reader(): Limit the number of columns read in Windows Pedroski55 9 5,379 Jan-23-2021, 01:03 AM
Last Post: pjfarley3
  Can't read url when specifying more than a specific number of bytes deivid 3 3,144 Aug-13-2018, 02:24 PM
Last Post: deivid

Forum Jump:

User Panel Messages

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