Dave Zych
  • Home
  • About
  • Contact
  • Privacy

binary

A collection of 1 post
binary

Converting an int to a binary string in C#

The .NET Framework has a built in overload of Convert.ToString which takes 2 parameters: the int you want to convert and an int of the base you want to convert to. Utilizing this with base 2, you can print out the string representation of a number in binary, like
Dec 6, 2013 2 min read
Page 1 of 1
Dave Zych © 2026
  • Data & privacy
  • Contact
Powered by Ghost