I'm looking for the format specifier for String.Format() (or if there is a NumberFormatInfo class that will do it) to format a integer as octal in .NET, as {0:x}
formats it as hex, e.g:
String.Format("{0:x}", 15) // returns "f"
System.Convert.ToString(15, 8)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With