开发者

Can System.Int32.ToString() specify a custom radix?

开发者 https://www.devze.com 2023-01-26 01:18 出处:网络
I want to convert an int to a string with base36 (0-9 and a-z). How is this done in 开发者_如何学Go.NET?The only thing close is Convert.ToString(), which only allows conversions to base 2, 8, 10, and

I want to convert an int to a string with base36 (0-9 and a-z).

How is this done in 开发者_如何学Go.NET?


The only thing close is Convert.ToString(), which only allows conversions to base 2, 8, 10, and 16. You will have to roll your own conversion, or use this sample on CodeProject.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号