/ Published in: C#
Microsoft Official Documentation:
https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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'
URL: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx