how is this possible?


0113 // octal
0x4b // hexadecimal
How can every single one of these b 75?
I dunno if i'm right, but the only way i c the octal beein 75 is:
1+1+3=5+0(which is 7), making it 75 in total. Im using internet slang, so plz don't say i can't write or spel. Thank 4 the answers u guys r goin 2 give.
0113 in octal=0*8^3+1*8^2+1*8+3=64+8+3=75.
0x4b in hex=4*16+b=63+11=75.
I dont know what do you think is wrong!
@vilml, what does the ^ mean? btw, ur calculations r wrong
0x4b in hex=4*16+b=63+11=75.: where does the 11 come from?
I'm stuck i really don 't understad nothing
Last edited on
The ^ here is meant not as a bitwise XOR but actually as raising a value to an exponent.

The 11 is because B is 11 (lowercase b however is 38)
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15
etc...
malvado wrote:
m using internet slang, so plz don't say i can't write or spel.
Internet Slang can't spell worth a darn either, so why can't we say you can't?
Last edited on
lol whut u lamer!!1!!111!!!
3*1 + 1*8 + 1*(8*8) = 75 ROLFCOPTER
(b=11)*1 + 4*16 = 75 LOLCATS11!!1!1!

If you want answers that don't rely on you knowing the complete context, I can give you the answer again without using internet slang.
now im really messed up. I dont understand nothing.
Plz just explain to me how is it possible that 0x4b n 0113 can b 75. Plz help me man, im stuck.
Last edited on
Lemme c. I think i get it now. 4 example:ox5f= 5*16+ f (the f is 15) = 95. Is this right?
Last edited on
0113 in octal=0*8^3+1*8^2+1*8+3=64+8+3=75. this is the only part i do not get. Where do the 3 and 8 after 64 come from? Why isn't 3 multiplied by 8, like 0,1 n 1?
Last edited on
sry ppl, the problem was my calculator. I think i get it now, and if i don't i will come back
let me c if i get it now.
0113 = 0*8^3+1*8^2+1*8+3=75. Is this right?
Last edited on
every digit is multiplied by the power of the digit place, seen reading from right to left of it's base. tha means 0 is multiplied by 8 to the 3rd, 1 by 8 to the 2nd, 1 by 8 to the first(8), and the 3 is multiplied by 8 to the zeroth, which is 1, and I didn't write it becouse evryone know any number multiplied by 1 is that same number.
Sort of,
0113

3*80 + 1*81 + 1*82 + 0*83
3*1 + 1*8 + 1*64
3 + 8 + 64
3 + 72
75
Last edited on
The only thing i do'nt nderstand is that '\x41' the letter A is
That has to do with this:
http://www.cplusplus.com/doc/ascii/
Topic archived. No new replies allowed.