Professors spent 2 days explaining this and still didn't understand it. I come here and l learned it within 10 minutes this was greatly explained thank you.
This is a very difficult thing for me to understand. However, after watching the video and rewatching certain parts a few times, I believe I understand it. Thank you so much for your simple explanation!
Hex numbers always begin with 0x (for example: 0xFF00, 0xEF21, 0x1234), and binary numbers always begin with 0b (for example: 0b1010, 0b1111, 0b0001). Most programming languages look for the prefix (0x or 0b) when interpreting a number.
Wow - this was recorded 7 years ago, and glad to find it today to help me finally grasp this programming concept. Thx For taking time to explain hard and make it easy!
you should be a teacher . it's very complicated and i really have been struggling with it alot, but the way you explain it made me understand it very well. I really appreciate it i needed it for my study :)
one key thing not mentioned here that makes hexadecimal so useful to programmers is that each hexadecimal digit corresponds to 4 bits in binary. 0=0000, 1=0001, etc all the way through E=1110, F=1111 - such that FE01=1111111000000001. this allows hexadecimal to serve as a visually compressed form of binary.
Thank you master Corey for teaching me 'The art of base-16' for I have yet to make it to second base. "Badum tss". bad joke, but seriously though, thank you.
Brilliant explanation! I'm studying web development & at the moment I'm following a tutorial on implementing HTML5 sliders to create variable numeric values between 0-255, then using JS logic, convert 10 base to 16 & concatenate the result with a pretended hash to derive at a color code( like #71726a which is yellow ). Then use the color codes to dynamically change the background color of a web-page. The tutorial was easy to follow & I understood all of it until I reached this syntax -- rdhex = (rd < 16) ? "0" + rd.toString(16) : rd.toString(16); This is a ternary operator, a conditional statement that checks if rd(a var) is less than 16 if true, concatenate 0 to the base 10 numeric value & set it to 16 base or just set the rd(var.value) to 16 base string. I didn't even know about bases let alone how they function as I left School at the age of 13y ;( at the time I figured I would never use what I was being taught -- I wish so much I had stayed now, as I love learning & teaching for that matter + you know it's so empowering when you "get it" understanding is the best feeling right... Anyway enough banter, THANK YOU for posting this awesome tutorial. ;) michael(twitter.com/WEBrip)
This is a great tutorial on understanding conversion to decimal, but I'd say that if one "understands" hexadecimal and binary, conversion to decimal and steps like addition and substraction should be understood too.
Sir, your explanation is the best I have seen, thank you so much for this great content, you are straight to the point, no waste of time, no hesitation, absolutely loved it, looking forward to see more of you!
My teacher took 1 hour to explain it I still did not understand the next day my teacher taught did the same I still did not understand and I came Here and learned it in 10 minutes and I have no questions
What about going backwards? I have an 8 bit address where the first bit is just read/write and the last 7 bits are the actual address I use a converter online to get hex>binary and then remove the first bit (2^0) then use those 7 bits to convert back to hex. But I want to understand. I can get binary>decimal and hex>decimal But how do you easily figure out Decimal>binary and decimal>hex Or skip the middle man and just do Binary>hex and vise versa?
Foe the longest time, I wanted to know how base-37 works. This because I figured out that once bases go over 10, it goes into the Latin alphabet, but the Latin alphabet only goes up to 26 digits, so how would base-37 work?
I have one question though. How do you get the base? Like does it stay 2^n in binary and 16^n in hexadecimal or are these just examples? Where exactly do you get the base from and how do you signal the program which base it has to use?
In ancient times the Chinese also use hexadecimal system aside from the common decimal system. Thus, they have designed 2/5 beads in each rod of the abacus to accommodate both decimal and hexadecimal numbers. For bit of info click on hsm.stackexchange.com/questions/5172/what-is-the-most-ancient-civilization-that-used-base-16-hexadecimal-number-sys/5177#5177
so in binary or hexadecimal how do you make really intricate numbers like 17702, and what technique does one use to translate normal numbers into binary or hexadecimal? But, thx anyway, I understood a lot more than I used to!! :D
Wow I’m homeschooling my 7th grader, was looking for something to help me understand this stuff this video did help lol . But I read the comments and most of them are from college students!
@@deedewald1707 I re-watched it and he typed correctly into the calculator right? So except from a bit of speech-confusion, it's all well. Thank you for elaborating!
I'm confused why F is 15, I thought it was (0,1,2,3,4,5,6,7,8,9) which is 10 digits and then you start counting from letters (A,B,C,D,E,F) which is 6 letters. Are you skipping the 0 in the digits, and if so why?
Professors spent 2 days explaining this and still didn't understand it. I come here and l learned it within 10 minutes this was greatly explained thank you.
@@jordanmarshall285 government schools are like governments themselves, sub-par at best when it comes to providing goods and services.
This is true, lectures are waist of time. You can't pause and replay a professor..... at-least with out disrupting a whole class.
My professor doesn’t talk loud enough so I could hear anything she said for and hour... I come here and learn it in 10min. Thank you!
couldn't*
OK will see in 10 minutes if I get it...
@@careditor well... did you?
I’m not even in college and learned it for my PLC certification process. How do you all get funding for school.
Tell that bitch to get a megaphone or you'll stop paying your tuition.
thank you so much I missed out a week of college and this single video has put me ahead of the class by a whole unit you got your self a sub
Videos like this make watching youtube better than attending class. It doesn't get any clearer than this. Excellent!
This is a very difficult thing for me to understand. However, after watching the video and rewatching certain parts a few times, I believe I understand it. Thank you so much for your simple explanation!
Thanks, man!! Spent an hour last night stressing over the hexadecimal stuff in my text book but your video has made it seem a lot clearer!!
Omg Thank you so much, I almost gave up. You have no clue how many videos I've watched. You're amazing!
Coming back to see people searching; gives more credence to the hope in the future
I like your original comment !
finally, after 10 min video figured it out. thank you so much
I’m a web developer and now I can feel the colors. Thanks!
This is awesome. I am a Filipino and I'm 12. My language is not English but this helped. Thank you so much for this!
I just found the bright side of UA-cam. Thanks for this video mate!
NOW I UNDERSTAND HOW LETTERS BECOME NUMBERS !!!!!!THNX!!!!ANYWAY THE WAY YOU TEACH IS AWESOME!!!!KEEP IT UP
Dude!!! Do you know how long I have been trying to understand this?!?!?! Your explanation makes so much sense. Thank you!!!
Hex numbers always begin with 0x (for example: 0xFF00, 0xEF21, 0x1234), and binary numbers always begin with 0b (for example: 0b1010, 0b1111, 0b0001). Most programming languages look for the prefix (0x or 0b) when interpreting a number.
better explained than any professor i've had
I was just reading about this and struggling to get my head around exactly what I was being told.
This simple video cleared it up nicely!
After this video I finally undestood binary and hexadecimal. Thank you so much Corey Schafer!
Wow - this was recorded 7 years ago, and glad to find it today to help me finally grasp this programming concept. Thx For taking time to explain hard and make it easy!
Thank you! Keep up the quality content! You saved me, I got exam on this tmr 🤣
Thank you soo much. It was driving me crazy and you explained it so simply.
you should be a teacher . it's very complicated and i really have been struggling with it alot, but the way you explain it made me understand it very well. I really appreciate it i needed it for my study :)
Thank you so much bro, simple and to the point without any useless tangents. Rare to see! :)
Thank you Corey. A brilliant tutorial that's even helped to find my Apple calculator on my Mac. I didn't know i had one! Cheers
Great Work Corey. Many thanks for this video.
Great vid, very professional, should have way more views.
I understand pretty much more you than my teacher. I'm mexican so that should tell you my teacher kind of suck.
Grettings from mexico. o/
correlation?
hahaha
This tutorial is amazing. 255.255.255 also gave me some networking shivers. Amazing content.
I was very confused by my professor but now I get it instantly. ty ty
Excellent explanation Corey, thank you so much.
Thank you for this easy to understand video. I am currently taking a computer science class where this is a fundamental aspect.
one key thing not mentioned here that makes hexadecimal so useful to programmers is that each hexadecimal digit corresponds to 4 bits in binary. 0=0000, 1=0001, etc all the way through E=1110, F=1111 - such that FE01=1111111000000001. this allows hexadecimal to serve as a visually compressed form of binary.
Thank you master Corey for teaching me 'The art of base-16' for I have yet to make it to second base. "Badum tss". bad joke, but seriously though, thank you.
I like your original comment !
Thank you so much, most understandable way I've heard base 16 described yet!
Took one week for my teacher to explain me. but this single video explained me the whole thing in just 10:43 minutes. nice video. u got ur self a sub
Brilliant explanation! I'm studying web development & at the moment I'm following a tutorial on implementing HTML5 sliders to create variable numeric values between 0-255, then using JS logic, convert 10 base to 16 & concatenate the result with a pretended hash to derive at a color code( like #71726a which is yellow ). Then use the color codes to dynamically change the background color of a web-page. The tutorial was easy to follow & I understood all of it until I reached this syntax -- rdhex = (rd < 16) ? "0" + rd.toString(16) : rd.toString(16); This is a ternary operator, a conditional statement that checks if rd(a var) is less than 16 if true, concatenate 0 to the base 10 numeric value & set it to 16 base or just set the rd(var.value) to 16 base string. I didn't even know about bases let alone how they function as I left School at the age of 13y ;( at the time I figured I would never use what I was being taught -- I wish so much I had stayed now, as I love learning & teaching for that matter + you know it's so empowering when you "get it" understanding is the best feeling right... Anyway enough banter, THANK YOU for posting this awesome tutorial. ;) michael(twitter.com/WEBrip)
very helpful thank you
This is a great tutorial on understanding conversion to decimal, but I'd say that if one "understands" hexadecimal and binary, conversion to decimal and steps like addition and substraction should be understood too.
UA-cam's search algorithm failed but I still enjoyed the video..... EDIT: Actually this was the video I needed. I just needed to wait a few minutes.
Sending love from Brazil
just kidding I'm white
Lmao you're so funny
thanks
shit I didnt change profiles
this comment thread was a ride Lmao
From 7 years later, thank you. Finally understood
anyone else did (8 + 2 = 10) + (4 + 1 = 5) = 15 for 1111
3 hour théories just to understand this in 10 mins🥲 I’m gonna go unalive myself real quick
This tutorial is terrific! I would like to know this though: how do you go the other way? Specifically from base-10 to base-16?
This was so fricking well explained. Thank you.
This video simplified my life at the moment, you got a new subie!:)
Thank you so much , you made this easy for me and managed to make me understand the whole image
thanks
Sir, your explanation is the best I have seen, thank you so much for this great content, you are straight to the point, no waste of time, no hesitation, absolutely loved it, looking forward to see more of you!
Thankk Youu soooo veryy muchh for this video. You don't know how big of a help is this for me.✨💫
My teacher took 1 hour to explain it I still did not understand the next day my teacher taught did the same I still did not understand and I came Here and learned it in 10 minutes and I have no questions
Thank you very much for this video! It was very clear and helpful for me :)
Please, please, please, let me understand this for my future...Yes I understood most of it but I need more work. Thanks a ton....
I LOVE YOU. BEST EXPLANATION EVER. I can even convert seximal easy now!
Bro you're a legend! Thanks
Good video,straight to the point.
Thanks for the free leson. Cheers!
Thank God for UA-cam!
Awesome tutorial, talk about distilling stuff. Subscribed!
Appreciate the time you put into this. Liked and subbed. Helped me understand this better.
Excellent explanation. I finally get it.
This was very helpful man thanks
Excellent examples !
That made so much sense. Appreciated and subscribed . I NOW UNDERSTAND Yipee!!
Thank you so much!!! You made it easy to understand, especially the base part
What about going backwards?
I have an 8 bit address where the first bit is just read/write and the last 7 bits are the actual address
I use a converter online to get hex>binary and then remove the first bit (2^0) then use those 7 bits to convert back to hex.
But I want to understand. I can get binary>decimal and hex>decimal
But how do you easily figure out
Decimal>binary and decimal>hex
Or skip the middle man and just do
Binary>hex and vise versa?
That was very well explained. Thank you very much!
Thank you it was really well explained
thanks so much you explained this so easily now i can finally understand it🥰
Very Usefull tutorial - many thanks
Foe the longest time, I wanted to know how base-37 works. This because I figured out that once bases go over 10, it goes into the Latin alphabet, but the Latin alphabet only goes up to 26 digits, so how would base-37 work?
Start using Cyrillic instead? =P
One could use the ASCii symbols above Z and a look up table !
Why doesn't successive division work in Base 16 - Base 10 conversion?
Very well explained! 👍
Thank you. Explained very well.
Great job. Thanks for the explanation
I have one question though. How do you get the base? Like does it stay 2^n in binary and 16^n in hexadecimal or are these just examples? Where exactly do you get the base from and how do you signal the program which base it has to use?
Tfw no camera It’s just the standard. If it doesn’t say for binary assume base 2 and for hex assume base 16
quality video. Would watch again 10/10 NGL
This was really helpful!!!! Thank you
I know its an ancient video but it helped a lot
im still confused
Lol
are you still confused, 4 years later?
@@chubbyBunny94 indeed
@@su1hi why
@@Spypol19 idk the concept never picked up for me
this is how you understand binary, hexadecimal, decimal (base-10), and more
In ancient times the Chinese also use hexadecimal system aside from the common decimal system. Thus, they have designed 2/5 beads in each rod of the abacus to accommodate both decimal and hexadecimal numbers. For bit of info click on hsm.stackexchange.com/questions/5172/what-is-the-most-ancient-civilization-that-used-base-16-hexadecimal-number-sys/5177#5177
wonderful explanation loved it :)
Thank you
i have a question if u let me ask
why the maximum value is 255 even if i'm working in higher than 8 bit document?
so in binary or hexadecimal how do you make really intricate numbers like 17702, and what technique does one use to translate normal numbers into binary or hexadecimal? But, thx anyway, I understood a lot more than I used to!! :D
If you still wanna know you just keep going up in the powers like 16^4 and so on
Im in year 9 and im learning this
Wow I’m homeschooling my 7th grader, was looking for something to help me understand this stuff this video did help lol . But I read the comments and most of them are from college students!
Very Easy Thanks
My teacher speaks so fast i cannot understand her I realy need these videos to keep up with my class thank you so much for making these
Consive and effective lecture
great content! thanks for the effort!
You are amazing! thanks for this clear explanation
should i always use 16 to the power of 1,2,3etc? and how can i know if its 16or 10 to use?
Hexadecimal uses base 16
What if it was 5 characters long for example BF4A7?
then in the fifth place comes 16 to the power of four
And how much is -1 in hexadecimal?
thanks man
Very interesting!
wtf thank u dude this made me understand so much
Why the hell is 5 x 16^1 = 16? I don't get it. Shouldn't it be 80? What did I get wrong there?
You are correct and that was typed on his calculator !
@@deedewald1707 I re-watched it and he typed correctly into the calculator right? So except from a bit of speech-confusion, it's all well.
Thank you for elaborating!
I'm confused why F is 15, I thought it was (0,1,2,3,4,5,6,7,8,9) which is 10 digits and then you start counting from letters (A,B,C,D,E,F) which is 6 letters. Are you skipping the 0 in the digits, and if so why?
Same reason in decimal, 9 is the tenth digit, F represents the 16th digit in hexadecimal if you were to start counting from zero.