我认为,真正的问题是如何将基数2/宾改为基数10。 最常见的应用可能是为产出提供说明:将双向数字数据库变成一系列特征。 如何做到这一点?
my guess: Seeing as there probably isn t a string predefined for each numerical value, I m guessing that the computer goes through each bit of the integer from right to left, each time incrementing the appropriate values in the char array/base10 notation places. If we take the number 160 in binary (10100000), it would know that a 1 in the 8th place means 128, so it places 1 into the third column, 2 in the second, and 8 in the third. The 1 in the 6th column means 32, and it would add those values to the second and first place, carrying over if needed. After this it s an easy conversion to actual char codes.