How I can convert int to binary string swift?

后端 未结 0 1393
囚心锁ツ
囚心锁ツ 2021-01-23 21:14

I have such int number:

266

I would like to convert it to binary string. In android I use such method:

Integer.toBinaryString(266)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题