最高有效位(英语:Most Significant Bit,msb),是指一个n位二进制数字中的n-1位,具有最高的权值。与之相反的称之为最低有效位。在大端序中,msb即指最左端的位。
对于有符号二进制数,负数采用反码或补码形式,此时msb用来表示符号,msb为1表示负数,0表示正数。
MSB(全大写)有时也指Most Significant Byte,指多字节序列中具有最大权重的字节。
参见
Wikiwand in your browser!
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.
Remove ads