我有一个很长的真值表,二进制列显示如下:
A + B = S BINARY
0 + 0 = 0 0
0 + 1 = 1 1
0 + 2 = 2 10
0 + 3 = 3 11
0 + 4 = 4 100
0 + 5 = 5 101
0 + 6 = 6 110
0 + 7 = 7 111
0 + 8 = 8 1000
0 + 9 = 9 1001
0 + 10 = 10 1010
0 + 11 = 11 1011
0 + 12 = 12 1100
0 + 13 = 13 1101
0 + 14 = 14 1110
0 + 15 = 15 1111
BINARY 列在哪里=DEC2BIN(S)
我需要强制二进制值一直有 4 位数字。所以0 = 0000
,3 = 0011
等等。我如何在 excel 中执行此操作?
解决方案:
=DEC2BIN(S,6)