0b

Compartilhar

Em várias linguagens de programação, o código prefixo 0b marca o início de um número binário. Por exemplo, 0b11111111 equivale a 255 como número decimal que usamos no nosso dia a dia.

Veja Também

Por referência, exemplos desses valores de 0 a 255:

0b0 = 0
0b1 = 1
0b10 = 2
0b11 = 3
0b100 = 4
0b101 = 5
0b110 = 6
0b111 = 7
0b1000 = 8
0b1001 = 9
0b1010 = 10
0b1011 = 11
0b1100 = 12
0b1101 = 13
0b1110 = 14
0b1111 = 15
0b10000 = 16
0b10001 = 17
0b10010 = 18
0b10011 = 19
0b10100 = 20
0b10101 = 21
0b10110 = 22
0b10111 = 23
0b11000 = 24
0b11001 = 25
0b11010 = 26
0b11011 = 27
0b11100 = 28
0b11101 = 29
0b11110 = 30
0b11111 = 31
0b100000 = 32
0b100001 = 33
0b100010 = 34
0b100011 = 35
0b100100 = 36
0b100101 = 37
0b100110 = 38
0b100111 = 39
0b101000 = 40
0b101001 = 41
0b101010 = 42
0b101011 = 43
0b101100 = 44
0b101101 = 45
0b101110 = 46
0b101111 = 47
0b110000 = 48
0b110001 = 49
0b110010 = 50
0b110011 = 51
0b110100 = 52
0b110101 = 53
0b110110 = 54
0b110111 = 55
0b111000 = 56
0b111001 = 57
0b111010 = 58
0b111011 = 59
0b111100 = 60
0b111101 = 61
0b111110 = 62
0b111111 = 63
0b1000000 = 64
0b1000001 = 65
0b1000010 = 66
0b1000011 = 67
0b1000100 = 68
0b1000101 = 69
0b1000110 = 70
0b1000111 = 71
0b1001000 = 72
0b1001001 = 73
0b1001010 = 74
0b1001011 = 75
0b1001100 = 76
0b1001101 = 77
0b1001110 = 78
0b1001111 = 79
0b1010000 = 80
0b1010001 = 81
0b1010010 = 82
0b1010011 = 83
0b1010100 = 84
0b1010101 = 85
0b1010110 = 86
0b1010111 = 87
0b1011000 = 88
0b1011001 = 89
0b1011010 = 90
0b1011011 = 91
0b1011100 = 92
0b1011101 = 93
0b1011110 = 94
0b1011111 = 95
0b1100000 = 96
0b1100001 = 97
0b1100010 = 98
0b1100011 = 99
0b1100100 = 100
0b1100101 = 101
0b1100110 = 102
0b1100111 = 103
0b1101000 = 104
0b1101001 = 105
0b1101010 = 106
0b1101011 = 107
0b1101100 = 108
0b1101101 = 109
0b1101110 = 110
0b1101111 = 111
0b1110000 = 112
0b1110001 = 113
0b1110010 = 114
0b1110011 = 115
0b1110100 = 116
0b1110101 = 117
0b1110110 = 118
0b1110111 = 119
0b1111000 = 120
0b1111001 = 121
0b1111010 = 122
0b1111011 = 123
0b1111100 = 124
0b1111101 = 125
0b1111110 = 126
0b1111111 = 127
0b10000000 = 128
0b10000001 = 129
0b10000010 = 130
0b10000011 = 131
0b10000100 = 132
0b10000101 = 133
0b10000110 = 134
0b10000111 = 135
0b10001000 = 136
0b10001001 = 137
0b10001010 = 138
0b10001011 = 139
0b10001100 = 140
0b10001101 = 141
0b10001110 = 142
0b10001111 = 143
0b10010000 = 144
0b10010001 = 145
0b10010010 = 146
0b10010011 = 147
0b10010100 = 148
0b10010101 = 149
0b10010110 = 150
0b10010111 = 151
0b10011000 = 152
0b10011001 = 153
0b10011010 = 154
0b10011011 = 155
0b10011100 = 156
0b10011101 = 157
0b10011110 = 158
0b10011111 = 159
0b10100000 = 160
0b10100001 = 161
0b10100010 = 162
0b10100011 = 163
0b10100100 = 164
0b10100101 = 165
0b10100110 = 166
0b10100111 = 167
0b10101000 = 168
0b10101001 = 169
0b10101010 = 170
0b10101011 = 171
0b10101100 = 172
0b10101101 = 173
0b10101110 = 174
0b10101111 = 175
0b10110000 = 176
0b10110001 = 177
0b10110010 = 178
0b10110011 = 179
0b10110100 = 180
0b10110101 = 181
0b10110110 = 182
0b10110111 = 183
0b10111000 = 184
0b10111001 = 185
0b10111010 = 186
0b10111011 = 187
0b10111100 = 188
0b10111101 = 189
0b10111110 = 190
0b10111111 = 191
0b11000000 = 192
0b11000001 = 193
0b11000010 = 194
0b11000011 = 195
0b11000100 = 196
0b11000101 = 197
0b11000110 = 198
0b11000111 = 199
0b11001000 = 200
0b11001001 = 201
0b11001010 = 202
0b11001011 = 203
0b11001100 = 204
0b11001101 = 205
0b11001110 = 206
0b11001111 = 207
0b11010000 = 208
0b11010001 = 209
0b11010010 = 210
0b11010011 = 211
0b11010100 = 212
0b11010101 = 213
0b11010110 = 214
0b11010111 = 215
0b11011000 = 216
0b11011001 = 217
0b11011010 = 218
0b11011011 = 219
0b11011100 = 220
0b11011101 = 221
0b11011110 = 222
0b11011111 = 223
0b11100000 = 224
0b11100001 = 225
0b11100010 = 226
0b11100011 = 227
0b11100100 = 228
0b11100101 = 229
0b11100110 = 230
0b11100111 = 231
0b11101000 = 232
0b11101001 = 233
0b11101010 = 234
0b11101011 = 235
0b11101100 = 236
0b11101101 = 237
0b11101110 = 238
0b11101111 = 239
0b11110000 = 240
0b11110001 = 241
0b11110010 = 242
0b11110011 = 243
0b11110100 = 244
0b11110101 = 245
0b11110110 = 246
0b11110111 = 247
0b11111000 = 248
0b11111001 = 249
0b11111010 = 250
0b11111011 = 251
0b11111100 = 252
0b11111101 = 253
0b11111110 = 254
0b11111111 = 255

Comentários

Deixe um comentário

Deixe seus pensamentos! Campos obrigatórios são marcados com *