Skip to content

Instantly share code, notes, and snippets.

@reza-ryte-club
Last active December 25, 2017 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reza-ryte-club/49c425c48b7400fb37b03940dcc2d306 to your computer and use it in GitHub Desktop.
Save reza-ryte-club/49c425c48b7400fb37b03940dcc2d306 to your computer and use it in GitHub Desktop.
let bitOne = 0b100111
let bitTwo = 0b101000
print(String(bitOne&bitTwo, radix: 2)) // Print the binary AND output 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment