我正在寻找String.Format()的格式说明符(或者如果有一个将要执行它的NumberFormatInfo类)在.NET中将整数格式化为八进制,因为{0:x}
格式化为十六进制,例如:
String.Format("{0:x}", 15) // returns "f"
System.Convert.ToString(15, 8)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.