Return to Snippet

Revision: 72278
at June 24, 2017 21:31 by clinaq

Initial Code
int DecimalValue;
string ValueInBinary;
ValueInBinary= Convert.ToString(DecimalValue, 2); //DecimalValue in integer type is converted to a string in binary - base of 2 form 'ValueInBinary'

Initial URL

Initial Description
Microsoft Official Documentation:

Initial Title
C# - Convert decimal value of integer type to binary value of string type

Initial Tags
convert, c#

Initial Language