基于lua的通用进制间(二进制到三十六进制)互相转换的方法
e.g.
baseConversion('29562300', 16, 2) => 00101001010101100010001100000000
baseConversion('29562300', 16, 10) => 693510912
baseConversion('29562300', 16, 8) => 5125421400
baseConversion('101001010101100010001100000000', 2, 16) => 29562300
2022-08-15 14:05:15
1KB
lua
1