KevKelley Posted May 8, 2022 Share Posted May 8, 2022 I hadn't read any way to do this and was wondering if there is a way to count the bits in a variable, like see how many 1s or 0s are in it so that if I were to do something like flip some bits I could count just how many I turned on or off. One idea I had was to have a data table with each entry on the table a number from 0-8 so that if a variable is checked it would just pull the number from the data table to be used elsewhere in the program. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.