Floating Point Numbers

Floating point numbers are a huge part of any programmer's life - It's the way in which programming languages represent decimal numbers. We usually use them without second thought, but as it turns out, it's a fairly complex way to store a number! In this episode, we take a close look at how it works, as well as what concepts are relevant to it.
ERRATA: Please check the pinned comments for errors in this video and more information.
There's more to floating point! In this video, we missed out on Denormal numbers, which is a special case for small numbers. For more, watch the video here → • Denormal Numbers - Mor...
Try it out and see how it works → resources.nerdfirst.net/float
= CONTENTS =
0:00 Introduction
0:48 Recap on the basic bits of an integer
1:06 Fixed point numbers
1:39 Problems of Fixed point numbers
4:37 Fundamentals of Floating point numbers
6:12 Worked example of Bits → Float
→ 6:34 Sign
→ 6:44 Exponent
→ 7:55 Mantissa
→ 8:52 Putting everything together
9:49 Worked example of Float → Bits
→ 10:12 Creating a Fixed point representation
→ 13:29 Deriving the exponent & mantissa
→ 15:12 Putting everything together
= 0612 TV =
0612 TV, a sub-project of NERDfirst.net, is an educational KZread channel. Started in 2008, we have now covered a wide range of topics, from areas such as Programming, Algorithms and Computing Theories, Computer Graphics, Photography, and Specialized Guides for using software such as FFMPEG, Deshaker, GIMP and more!
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → www.nerdfirst.net/donate/
0612 TV Official Writeup: nerdfirst.net/0612tv
More about me: about.me/lcc0612
Official Twitter: / 0612tv
= NERDfirst =
NERDfirst is a project allowing me to go above and beyond KZread videos into areas like app and game development. It will also contain the official 0612 TV blog and other resources.
Watch this space, and keep your eyes peeled on this channel for more updates! nerdfirst.net/
-----
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.

Пікірлер: 325

  • @NERDfirst
    @NERDfirst4 жыл бұрын

    *PLEASE READ THIS COMMENT IN ITS ENTIRETY FOR MORE INFO AND ERRORS IN THE VIDEO* 1. There is an edge case called "Denormal Numbers" that has not been accounted for in this video. Thanks to @PRANAnomaly for sharing! I have made a new video to discuss this concept: kzread.info/dash/bejne/lGZ6yahro7jVg5s.html Another set of special cases, namely Infinity and NaN, are also not covered in this video. For more details, please watch this other video I made: kzread.info/dash/bejne/dmuAtMyDlbWxeto.html 2. ERRATA: At 2:20, note that the number on the right should either be written as 1/2 or 2^-1, but not 2^(1/2)! Thanks 業夝王 for bringing this to my attention! 3. ERRATA: At 15:47, note that the bits from the decimal portion were read off incorrectly. Thank you to spinakker for sharing! This is the version corrected by them: i.imgur.com/ufOeklR.png

  • @intoeleven

    @intoeleven

    Жыл бұрын

    Somehow this comment is not pinnted to the top...You can add it to your subtitles.

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    Hello and thank you for your comment! Thanks for the heads up! I found that the pinned comment on quite a few of my videos had gotten unpinned somehow. I put them back whenever I come across them.

  • @intoeleven

    @intoeleven

    Жыл бұрын

    @@NERDfirst Thanks for the reply. Your videos help me a lot!

  • @hilaryyang3821
    @hilaryyang38213 жыл бұрын

    This was so far the most helpful video on floating-point representation I've seen. I'm surprised it didn't get more views. Thanks man!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you very much for your comment! Glad to be of help =)

  • @ladell5101
    @ladell51014 жыл бұрын

    Thanks, bro! This is SOOOOOO appreciated. I literally have a test on this stuff in about 9 hours.

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! All the best for your test =)

  • @okboing

    @okboing

    4 жыл бұрын

    How did u do

  • @ladell5101

    @ladell5101

    3 жыл бұрын

    @@okboing Super late, but I passed with a B+.

  • @markus6056

    @markus6056

    10 ай бұрын

    @@ladell5101YES!

  • @msgabbana14
    @msgabbana144 жыл бұрын

    Thank you! I finally understand this after avoiding the subject for an entire semester..

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Very happy to be of help =) Glad you got over that hurdle!

  • @lechi_2002
    @lechi_20023 жыл бұрын

    It's much more clear for me how floating point representation works. Thanks!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @ivanilanic
    @ivanilanic8 ай бұрын

    Sir you have a natural talent to teach, thank you sooo much !!

  • @NERDfirst

    @NERDfirst

    8 ай бұрын

    You're welcome! Very happy to be of help =)

  • @daylyght3654
    @daylyght36544 жыл бұрын

    I'm very sure it wasn't easy to put all of these great work together. I thank you for that.

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Yeah, this particular video was months in the making, heh. Honestly, quite relieved it's up. Glad you liked it =)

  • @nouhamataoui8836
    @nouhamataoui88364 жыл бұрын

    I have been struggling with this chapter for days and you just explained it in 15 minutes ?? I wish I had found this video sooner. Thank you so so much, this was extremely helpful :D

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @madhureshminoshi4272
    @madhureshminoshi42724 жыл бұрын

    thanks for putting in so much hard work in creating these videos . amazing explanation on floats .

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Glad you found the video useful =)

  • @ThierryPBeaulieu
    @ThierryPBeaulieu3 жыл бұрын

    One of the best channels on YT for clarity of explanation! Hats down!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help =)

  • @bhagyaanuragith8414
    @bhagyaanuragith84143 жыл бұрын

    you just saved my life. there is no other video explaining this stuff more clearly than you.

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Glad to be of help =)

  • @vitzal3691
    @vitzal36914 жыл бұрын

    You definitely earned this sub. This was an amazingly edited video and the information was thoroughly explained, much appreciated! If you want to find the range of this representation is it take all 1s for all the exponent bits for the largest possible exponent, take 1s for all the mantissa bits, add one to the mantissa and then complete the calculation from negative sign to positive sign?

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment and support! If you're looking for the smallest possible number (ie. a negative number) all the way up to the largest positive number, then yes - Just make the largest possible exponent and mantissa with both positive and negative signs and you'll get both. If you want to find the smallest positive number though, that's a bit harder. For that you'll need to look into Denormal numbers, which I did not cover in this video. A denormal number allows you to get an even smaller exponent than the exponent actually allows, by using zeroes in the mantissa. For more: kzread.info/dash/bejne/lGZ6yahro7jVg5s.html

  • @mullademir4589
    @mullademir45892 жыл бұрын

    I was pretty lost when I started to study this topic, but thanks to you it's not a problem anymore. Keep up the good work!

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help :)

  • @Hersonrock12
    @Hersonrock12 Жыл бұрын

    I appreciate so much having found this video, is not only greatly explained. But the page with the Floating point explorer is just beautiful. Thank you!

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @brennan5618
    @brennan5618 Жыл бұрын

    Absolutely excellent video. The website you created is a fantastic learning companion to the concept as well. Thank you!

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help :)

  • @kdbin101-1
    @kdbin101-1 Жыл бұрын

    Such a clean and intuitive explanation, thank you!! 🙏

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @zekfad
    @zekfad4 жыл бұрын

    Thank's so much for a such quick video with a such huge impact on knowledge!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @mx6you
    @mx6you4 жыл бұрын

    Great Explanation. Thanks so much!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @tylercollins8075
    @tylercollins80752 жыл бұрын

    Very clearly explained! Thank you for this video

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @CODPRICEGHOST
    @CODPRICEGHOST4 жыл бұрын

    Great explanation, best video I found so far for floating point

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Glad you liked the video =)

  • @janiceay5051
    @janiceay50514 жыл бұрын

    Amazing tutorial. Easy to understand than others on youtube.

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Very happy to be of help =)

  • @albertomadalin2209
    @albertomadalin22092 жыл бұрын

    Thank you for making this video. You literally just helped me pass an exam i couldn't have studied on time for. You are the best. Keep up the good work.

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @redmoon8965
    @redmoon89654 жыл бұрын

    i see a lot of simplicity in this video , Best WAY to explain stuff , thank you so much buddy !

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to have been of help =)

  • @jiahganara7173
    @jiahganara71733 жыл бұрын

    this is way better than my module! finally get to understand :)

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @dzungdoan6774
    @dzungdoan67742 жыл бұрын

    There is no word that can describe how thankful to you . Thank you for the very helpful lesson.

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @riccardosola8326
    @riccardosola83263 жыл бұрын

    This was perfectly clear man! Thank you, really!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help =)

  • @51anirudh
    @51anirudh3 жыл бұрын

    Loved your way of explanation. Crisp and Clean :) Thank you :)

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @rastkostajic5525
    @rastkostajic5525 Жыл бұрын

    Thank you, great explanation!

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @deinemudda2325
    @deinemudda2325 Жыл бұрын

    what a legend. I really enjoyed the video. Thank you :)

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @hafsaahadbutt4529
    @hafsaahadbutt45292 жыл бұрын

    tysmmm u saved me....ur hardwork is much appreciated.

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @doug9000
    @doug90002 жыл бұрын

    i try to watch other videos but only on this one i got it, great explanation, thanks!

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @cokelight12
    @cokelight124 жыл бұрын

    Hats of to you sir, everything is crystal clear now :)

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Happy to be of help =)

  • @aeebeecee3737
    @aeebeecee37374 жыл бұрын

    Very thanks to you for your clear information

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @arrogantermistkerl4579
    @arrogantermistkerl45794 жыл бұрын

    Great stuff. I really dont miss going to university with videos like this

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Glad you liked the video =)

  • @vaz5926
    @vaz59264 жыл бұрын

    Thank you, man! Super helpful!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @ugandaknuckle6649
    @ugandaknuckle66493 жыл бұрын

    You are a life saver! Subbed!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Happy to be of help =)

  • @maherhanna2432
    @maherhanna2432 Жыл бұрын

    Thank you very clear explanation

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @Gnomfresser1
    @Gnomfresser14 жыл бұрын

    awesome description mate

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @Tubeytime
    @Tubeytime3 жыл бұрын

    My gratitude... is endless.

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Glad to be of help =)

  • @cyrilemeka6987
    @cyrilemeka69875 ай бұрын

    Amazing explanation ❤

  • @NERDfirst

    @NERDfirst

    5 ай бұрын

    Hello and thank you very much for your comment! Glad you liked the video =)

  • @NS-te8jx
    @NS-te8jx2 жыл бұрын

    very good explanation.

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @pratyaymandal5031
    @pratyaymandal50313 жыл бұрын

    After 2 -3 videos I found this video and it cleared all my doubts and I just want to tell you that I am in love with your explanation .Loveeeeeeee Youuuuuu bro

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help =)

  • @TheTariqibnziyad
    @TheTariqibnziyad4 жыл бұрын

    Love your video man !!!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @hongkyulee9724
    @hongkyulee97242 жыл бұрын

    Wow ... I feel like fall in love with floating point numbers... Your video is awsome Thank you :D

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @AudioBoi1
    @AudioBoi1Күн бұрын

    Very good video. Even though I didn't fully understand the process, it's still much easier to wrap my head around this concept overall. Thank you 🙏🙏

  • @NERDfirst

    @NERDfirst

    Күн бұрын

    Hello and thank you very much for your comment! Glad to be of help =) If you have anything you'd like me to clarify, feel free to let me know in a comment and I'll do what I can to help you!

  • @YRBYD
    @YRBYD4 жыл бұрын

    One of the few videos on KZread regarding floats where IEEE-754 is respected. Good job!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Do note that I do make some mistakes, please refer to the pinned comment for more =)

  • @heeseok7792
    @heeseok77924 жыл бұрын

    Man.... u r the first one to make me have clear picture on this 👍👍

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Glad to be of help =)

  • @hardiksen9722
    @hardiksen97223 жыл бұрын

    loved it. really helped me. It was the only thing I did not know for my exam. It is in 2 hours.

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! All the best for your exam!

  • @ryanzkp
    @ryanzkp3 жыл бұрын

    Thank you sooooooooo much! I finally got it!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @lucasrodriguesdelima8697
    @lucasrodriguesdelima86972 жыл бұрын

    This video is amazing !!!! Thank you so much .. :)

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @totem1997
    @totem1997 Жыл бұрын

    Thanks…..I will revisit this video couple of times in order to fully understand floating point.😊

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    Hello and thank you for your comment! Feel free to do so, and to clarify any doubts in the comments if you need :)

  • @georgebenjamin6632
    @georgebenjamin66324 жыл бұрын

    This is excellent!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Glad you liked the video =)

  • @muhammadtaimourafzal5285
    @muhammadtaimourafzal52853 жыл бұрын

    Great explanation

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Glad to be of help =)

  • @_AmHam_
    @_AmHam_3 жыл бұрын

    Thank you sooo much !!!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Happy to be of help =)

  • @jackchan2557
    @jackchan25574 жыл бұрын

    great explanation!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @aeebeecee3737
    @aeebeecee37374 жыл бұрын

    Your channel deserve more subscribers

  • @pareeksharao6524
    @pareeksharao65242 жыл бұрын

    thats amazing video finally after 4 days i got some easy and interesting video to learn floating point representation thakuu sir

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @apall2764
    @apall27644 жыл бұрын

    Gee I delved the whole Internet for a simple clear explanation like this Many thanks Bro!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @junkmail4613
    @junkmail46132 жыл бұрын

    I'm 72. Real powerful presentation, and your "Floating Point Explorer" calculator gives a chance to verify my understanding. Thank you. 2021 10 04 (as 2 years after publishing)

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help =)

  • @yousefelsayed4203
    @yousefelsayed4203 Жыл бұрын

    Thank you very much this helped me a lot ❤

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Glad to be of help =)

  • @xer_t3661
    @xer_t36612 жыл бұрын

    amazing explanation

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you very much for your comment! Glad you liked the video :)

  • @kaisolacegames
    @kaisolacegames2 жыл бұрын

    THANK YOU. The way floating point numbers were explained in my textbook made absolutely no sense. This was easy to follow and actually helped me get my head around the concept. You're the best!

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Very happy to be of help =) For a more complete understanding, you might want to watch the follow up videos about Denormal numbers, and do take note of the errata in the comments as well.

  • 3 жыл бұрын

    thank you very much, great explanation! :-) Cheers from Czech republic.

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @user-ff1km4wp5d
    @user-ff1km4wp5d Жыл бұрын

    very helpful thanks

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Very happy to be of help =)

  • @PCHerc
    @PCHerc2 жыл бұрын

    Excellent!

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @qwerty_____146
    @qwerty_____146 Жыл бұрын

    Thank you dear Bro. Thant's great. Nice. good job. 🙏

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Glad to be of help =)

  • @jojisamuel6765
    @jojisamuel67652 жыл бұрын

    Thank you so much.

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Glad to be of help =)

  • @keskim
    @keskim4 жыл бұрын

    Great video!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Very happy to be of help =)

  • @hafsaahadbutt4529
    @hafsaahadbutt45292 жыл бұрын

    this was freakingggg helpful...

  • @aswinramachandran7103
    @aswinramachandran71034 жыл бұрын

    dude you are amazing keep making videos like this it is so damn helpful

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you very much for your comment! Very happy to be of help =)

  • @alexmay7250
    @alexmay72502 жыл бұрын

    this video was amazing, you would be a great professor

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you very much for your comment! I do teach in physical classes, so it's good to hear the vote of confidence =)

  • @alexmay7250

    @alexmay7250

    2 жыл бұрын

    @@NERDfirst came back to review for my finial exam, your students are very lucky

  • @Kevin-tx6gw
    @Kevin-tx6gw Жыл бұрын

    king i learnt more from you in 19 minutes than in my university lecture

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    Hello and thank you for your comment! Glad to be of help =)

  • @aryafala949
    @aryafala9499 ай бұрын

    thank you so much

  • @NERDfirst

    @NERDfirst

    9 ай бұрын

    You're welcome! Happy to be of help :)

  • @RossMcgowanMaths
    @RossMcgowanMaths4 жыл бұрын

    14.25 -' if it was a zero we could stop it at a different place and express with a different exponent' ? What different place and what different exponent. I have used this video to code the floating point in VBA.It works with everything other than say 0.5. Very good video !

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! What I mean is, if you don't have the rule that the mantissa starts with 1, then all of the below are valid representations of 0.25: 0.25 × 2^1 0.5 × 2^-1 1 × 2^-2 2 × 2^-3 So to make the numbers consistent, the rules say the mantissa has an implied "1." in front.

  • @CodingJesus
    @CodingJesus4 жыл бұрын

    Amazing video.

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @louiseghemmam8056
    @louiseghemmam80564 жыл бұрын

    thank youuu !!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Glad to be of help =)

  • @Abon963
    @Abon9636 ай бұрын

    Thanks!

  • @NERDfirst

    @NERDfirst

    6 ай бұрын

    You're welcome! Glad to be of help :)

  • @olivier306
    @olivier306 Жыл бұрын

    Legendary guy!!!!

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    Hello and thank you very much for your comment! Glad you liked the video =)

  • @ltahoe9257
    @ltahoe9257 Жыл бұрын

    Omg do you have any idea how many videos I have watched, reread my CPE textbook to try to figure out why we add 1 to the mantissa. My textbook literally says, there's a one but it can be omitted and that bothered me so much that I didn't know. But now it makes sense, technically there is a 2 to the power of zero which is where the 1 comes from. Thank you!!!!!!!

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    Hello and thank you very much for your comment! Glad to be of help =)

  • @konstantinrebrov675
    @konstantinrebrov6754 жыл бұрын

    Great stuff! This video was in fact published just before we were going to cover it in class. Coincidence?

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Heh, as much as I'd like to say I carefully calculated the timing to coincide with the uni semester, I'm afraid it's complete coincidence =P

  • @harinduchira2268
    @harinduchira22683 жыл бұрын

    THANKS MAN..

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Glad to be of help =)

  • @rekxspein
    @rekxspein4 жыл бұрын

    Damn, so clearly explained, man when I read in books I didn't understand at all 🤣🤣🤣

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! Glad to be of help =)

  • @MaulCenter
    @MaulCenter4 жыл бұрын

    Hello and thank you for your video, bro...

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Glad you liked the video =)

  • @eliosgreek8028
    @eliosgreek80283 жыл бұрын

    great video.

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video =)

  • @MadisonHarrellMusic
    @MadisonHarrellMusic4 жыл бұрын

    THANK U

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Glad to be of help =)

  • @animeabsolute7130
    @animeabsolute71303 жыл бұрын

    thank you! this video really helpfully for newbie as me T^T

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @rafaelmejia2000
    @rafaelmejia20004 жыл бұрын

    You're a legend

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Cheers! Glad to be of help =)

  • @anniesue1
    @anniesue13 жыл бұрын

    Nice explanation/narration. Nice animations and graphical illustrations. Clear and concise while being thorough enough. The light reflections in your glasses are somewhat distracting tho...

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you very much for your comment! The reflections are hard to avoid when you want to light someone face-on, unfortunately! I've been experimenting with other placements to see the effect.

  • @Fudulworld
    @Fudulworld2 жыл бұрын

    ty

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    You're welcome! Happy to be of help =)

  • @JOURNEY-NEVER-ENDS
    @JOURNEY-NEVER-ENDS2 жыл бұрын

    nice video very good

  • @NERDfirst

    @NERDfirst

    2 жыл бұрын

    Hello and thank you for your comment! Glad you liked the video :)

  • @halfx3004
    @halfx30043 жыл бұрын

    Thanks

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    You're welcome! Glad you liked the video =)

  • @farrukhabdukodirov4088
    @farrukhabdukodirov40883 жыл бұрын

    awesome!!!!!

  • @NERDfirst

    @NERDfirst

    3 жыл бұрын

    Hello and thank you for your comment! Happy to be of help =)

  • @loulou6354
    @loulou6354 Жыл бұрын

    thank you.

  • @NERDfirst

    @NERDfirst

    Жыл бұрын

    You're welcome! Glad to be of help =)

  • @kellyprice882
    @kellyprice8823 жыл бұрын

    I LOVE YOU MAHN 😭😭

  • @kpriemko
    @kpriemko4 жыл бұрын

    Thx, bro, you get the job done. There is no misunderstanding here now.

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Very happy to be of help =)

  • @yaribnevarez2541
    @yaribnevarez25414 жыл бұрын

    Excelente!

  • @yaribnevarez2541

    @yaribnevarez2541

    4 жыл бұрын

    Thanks!

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    You're welcome! Glad to be of help =)

  • @fortamx
    @fortamx7 ай бұрын

    Hey man, great video! Could you explain why the exponent is represented with an offset and not another representation such as 2-complement? Thanks for the video!

  • @NERDfirst

    @NERDfirst

    7 ай бұрын

    Hello and thank you for your comment! The short answer would be "That is how it's designed", but naturally I was curious also as to why it was designed this way. Some people suggest that this helps with comparing two numbers - With the offset representation you could simply compare the bit strings of two floating point numbers as if they were integers and the answer would be correct. I wasn't able to find an official source to say that this is the reason why it was designed like that but it does seem to make a lot of sense. Some sources where this is discussed: employees.oneonta.edu/zhangs/csci201/IEEE%20Floating%20Point%20Format.htm stackoverflow.com/questions/2835278/what-is-a-bias-value-of-floating-point-numbers

  • @PopcornBunni
    @PopcornBunni11 ай бұрын

    My question is how large is the range of values able to be represented with this system, and what solutions/alternatives are used to represent larger or smaller numbers outside the range. Obviously floating point rounding will make some stuff imprecise, but I mean what is the largest and smallest absolute value for this?

  • @NERDfirst

    @NERDfirst

    11 ай бұрын

    Hello and thank you for your comment! To derive the largest and possible floating point values, the technique is to go for the largest possible exponent and mantissa. Then, flip the sign - The positive version is the largest possible value and the negative version is the smallest. Usually we also want to consider the smallest magnitude number (ie. The smallest positive number). For that, you'll need to go for the smallest denormal number (in which all exponent bits are zero), and only the least significant bit of the mantissa is 1. These have been worked out for 32-bit floats here but you technically do this for any bit length: stackoverflow.com/questions/32193791/single-precision-floating-point-format-range The simple solution to getting a larger range is to either use more bits, or to simply not use floats at all. Using strings or BigDecimal strategies are possible alternatives.

  • @batteryman2852
    @batteryman28524 жыл бұрын

    well, finally i could work out my self after a very long time. because i couldn't understand way i always got incorrect result on my end., but i rather got the Big-endian correct, and when i tryed to swap the bytes i got a huge number. Turns out after a few hour, the HeX editor was telling in E notation... so my answer was correct for a long time, because i didn't see the "e"

  • @NERDfirst

    @NERDfirst

    4 жыл бұрын

    Hello and thank you for your comment! What's important is that you figured it out =)

  • @batteryman2852

    @batteryman2852

    4 жыл бұрын

    @@NERDfirst Yes indeed, i wrote a function 2 days ago that turned 8 bytes to float64 manually.., which then turned into a wall of text in code ...oh dear..., but anyway, the only weird thing, 4 decimal back, it rounded up. i guess that's a floating point quirk on my cpu or compiler

  • @LinhNguyen-nh8oq
    @LinhNguyen-nh8oq9 ай бұрын

    Oh now I understand why we have to subtract 127: cause the exponent is 8 bit, so the max of it is 0-255. Inorder to represent smaller number(by multiply it with 2^-5 for ex), we have to represent the exponent in negative number => Split 255 in half = 127. And a second problem is why 2^ but not 10^ because by using base 2, we can convert bit to float and float to bit 😁

  • @NERDfirst

    @NERDfirst

    9 ай бұрын

    Hello and thank you for your comment! I would say simply that we use Base 2 because computers represent information in binary. Even when it's in bits (base 2), it already _is_ a floating point number,