Skip to content

Instantly share code, notes, and snippets.

@reza-ryte-club
Created December 25, 2017 23:11
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/b2a23bed228b4d98b354797265e29999 to your computer and use it in GitHub Desktop.
Save reza-ryte-club/b2a23bed228b4d98b354797265e29999 to your computer and use it in GitHub Desktop.
let bitOne = 0b100111
let bitTwo = 0b101000
print(String(bitOne|bitTwo, radix: 2)) // Print the binary OR output 101111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment