问题描述
我的教授向我保证这个例子是正确的,但我无法回到它。我需要将我的打印机的mac转换为十进制,因此我可以找到十进制值。在他给我的例子中,我已经在几个在线转换器上尝试了这一点,我无法复制它。
MAC = AA:BB:CC:00: 11:22,转换为十进制将是170.187.204.0.17.34
一个mac地址的大小为6个字节。这些字节由冒号分隔。
要将mac地址转换为十进制数,您必须转换这些单个字节。
所以十六进制AA将是140十进制,BB = 187和CC = 204等等......
My professor has assured me this example is correct but I can not back into it. I need to convert the mac of my printer to decimal so I can find the decimal value.
In the example he gave me, I have tried this on several online converters and I can not replicate it. What am I missing here, I searched stack I see some examples but I can not reproduce this so this is no duplicate.
MAC = AA:BB:CC:00:11:22, converted to decimal would be 170.187.204.0.17.34
A mac address has a size of 6 byte. This bytes are seperated by colons.
To convert the mac address to decimal you have to convert these single bytes.So hex AA would be 140 decimal, BB=187 and CC=204 and so on...
这篇关于将HEX转换为十进制值? w /一个例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!