how to go from decimal to Octal numbers in c#

  • Thread starter Thread starter Stan
  • Start date Start date
S

Stan

The convert method allows us to change any base number (bin, octal,
hex ) to decimal, but how can I change a decimal value back to an
octal number???

Thanks in advance
Stan
 
Stan,
The convert method allows us to change any base number (bin, octal,
Which "convert" method, do you mean the Convert class?

You can use System.Convert.ToString(int32, int32) to convert an integer
(byte, int16, int32, int64) to a string using the specified base (2, 8, 10,
16).

Hope this helps
Jay
 
Back
Top