Essential C# Common String Operations  Suggest an edit

Convert Decimal Number to BinaryOctal and Hexadecimal Format

  1. To convert decimal number to binary format use base 2
    Int32 Number = 15;
    Console.WriteLine(Convert.ToString(Number, 2));  //OUTPUT : 1111
  2. To convert decimal number to octal format use base 8
    int Number = 15;
    Console.WriteLine(Convert.ToString(Number, 8));  //OUTPUT : 17
  3. To convert decimal number to hexadecimal format use base 16
    var Number = 15;
    Console.WriteLine(Convert.ToString(Number, 16));  //OUTPUT : f


Table Of Contents
11 Common String Operations
22 Enum
25 GUID
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close