how to go from decimal to Octal numbers in c#

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top