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
https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx

Initial Description
Microsoft Official Documentation:
https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx

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

Initial Tags
convert, c#

Initial Language
C#