Swift Bit, Byte and Nibble

Binary development made easy

Steven Curtis
The Startup

--

Photo by Markus Spiske on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

Progressing in these articles on Swift programming, it is apparent that Binary is extremely important in development.

This article extends the knowledge-base to Bits, Bytes and Nibbles.

I hope that is an awesome.

Prerequisites:

  • Coding in Swift Playgrounds (guide HERE)

Together with some knowledge of:

  • Arrays (guide HERE)
  • Binary for programmers (guide HERE)

Terminology

Binary: The name of the base 2 number system

Bit: A basic unit of data. That is, a single binary value of 0 and 1

Byte: 8 Bits

Data: Information processed or stored by a computer

Data types: A representation of the tyoe of data that can be processed, for example Integer or String

Denary: The name of the base 10 numbering system

Hexadecimal: The name of the base 16 number system

Nibble: 4 bits

--

--