Saturday, May 21, 2022 19:37

Posts Tagged ‘bit’

Bit masks and the Flags enumerations attribute

Sunday, July 16th, 2017

Most programmers use enums just so they can enforce a predefined set of options from which users can chose. However, enums have one major disadvantage: they can only hold one value at a time. Let’s say we have the following code:

In this case, specifying that we want to have a direction towards left seems OK.… Read more

Hexadecimal numbers

Monday, December 26th, 2016

Just like the binary representation, of which I have discussed in the previous lesson, hexadecimal notation is just another form of representing numbers. So, hexadecimal numbers, at their core, are normal numbers, represented in base 16, instead of base 10, as for the decimal numbers.… Read more

Bit. Byte. Binary counting.

Monday, December 26th, 2016

I was explaining in a previous lesson that at the deepest level, computers store and process information only as two values, 0 and 1. These values are the smallest individual pieces of information inside a computer, and they are called bits.… Read more

Follow the white rabbit