Decimal to Floating Point Conversion

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • A video for my classes, converting a Decimal number into Single Floating Point Notation.

КОМЕНТАРІ • 55

  • @same.2411
    @same.2411 3 роки тому +26

    Finally, a worthy competitor to the indian youtube tech tutorial channels

  • @stevensamrow330
    @stevensamrow330 7 років тому +74

    This is, by far the most simplistic and straight forward decimal to floating point conversion video I've seen yet. Thanks!

  • @SigmaHayate
    @SigmaHayate Рік тому

    This is much easier to understand than my instructor's explanation. Can't believe a video of 7 years ago does better than a today instructor

  • @PresidentArmer
    @PresidentArmer 2 роки тому

    I spent 2 hours confused in my book, then had it click immediately in your 6 minute video. Cheers!

  • @mindyourbusiness2394
    @mindyourbusiness2394 5 років тому +1

    I watched a lot of videos to figure out how to convert decimal to floating point. This is the best video. I think I can solve any question of that kind. Thank you so much Nicholas.

  • @crackrokmccaib
    @crackrokmccaib 2 роки тому

    You did a way better job explaining this than a certain online credit earning learning website did. Their CS 306 computer architecture lesson just was like blah blah, I'm saying stuff but not actually saying where anything comes from.

  • @pauljackson8336
    @pauljackson8336 7 років тому +35

    Sorry, I don't think you explained where did the *127* come from and why do we have to add it to the exponent(4). At 4:31 time stamp

    • @NicholasDingle
      @NicholasDingle  7 років тому +16

      +Paul Jackson The exponent represents how many places the dot was moving so we need to start at a middle value (127 is roughly the middle of 8 bits which has a range of 0-255). Since we start at 127 we can move the dot 128 spaces to the left, or 128 spaces to the right.

    • @pauljackson8336
      @pauljackson8336 7 років тому

      Ah yeah, now it makes sense, thank you for the quick reply ^^

    • @wolfcompany2
      @wolfcompany2 3 роки тому

      @@NicholasDingle do you +127 because it was a positive 4? Would it be -127 if it is -4?

    • @Fly_Nimbus
      @Fly_Nimbus 3 роки тому

      @@wolfcompany2 correct 127 + (-4) or -4 + 127which would be 123 also we get 127 because its a 32bit standard if its a 64bit standard it will be a different value

  • @ignisninja5867
    @ignisninja5867 Рік тому

    Clear and straight to the point. Thank you so much

  • @dripsquad7676
    @dripsquad7676 3 роки тому +1

    thank you Nicholas a lot this was awesome explanation and video

  • @dimpln7713
    @dimpln7713 Рік тому

    this is so simple, amazing explanation thank you

  • @hollouise8134
    @hollouise8134 5 років тому +4

    Absolute legend

  • @user-bx8sj6qm3w
    @user-bx8sj6qm3w Рік тому

    Thank you, now I can solve my homework in detail as asked ❤️

  • @redabou9al562
    @redabou9al562 11 місяців тому

    thank you for this clear explanation.

  • @gcjas1998
    @gcjas1998 7 років тому +3

    Simple and concise. Thank you.

    • @tutuuo
      @tutuuo 6 років тому

      Concise wasn''t necessary lmao

  • @MCSGproject
    @MCSGproject 7 років тому +4

    legendary, thanks

  • @davidcopher6294
    @davidcopher6294 4 роки тому

    Thank you so much, keep up the good work. Helped me out a lot.

  • @b213videoz
    @b213videoz Рік тому

    Excellent video!

  • @tejas12365
    @tejas12365 7 років тому

    you are a life saver bro

  • @12rhQ
    @12rhQ Рік тому

    thank you, very good

  • @muhammadfaizan9909
    @muhammadfaizan9909 4 роки тому +1

    stay bless

  • @eshaanbagga5159
    @eshaanbagga5159 2 роки тому

    Nicely explained.

  • @beforethescene7880
    @beforethescene7880 2 роки тому

    thank you so much I love you

  • @gauravbadhani159
    @gauravbadhani159 4 роки тому

    easy explanation thankyou..

  • @SmokeBloody
    @SmokeBloody 4 роки тому

    Thanks, you really helped!

  • @francisferri2732
    @francisferri2732 Рік тому

    Thank you :D

  • @askram91
    @askram91 7 років тому

    Very useful one,Thank you

  • @pyrobosnia6659
    @pyrobosnia6659 2 роки тому

    Thank you soo much!

  • @ning1606
    @ning1606 7 років тому +1

    great video!

  • @PianoBounty
    @PianoBounty 6 років тому

    What if I have a number in decimal base that can't be represented in binary base by floating point binary? Does this method still reach to a binary floating point number or do you end up having a problem like an endless loop of calculation?

  • @friday8118
    @friday8118 2 роки тому

    so we multiply to convert the other way?

  • @kjelltitulaer3593
    @kjelltitulaer3593 6 років тому

    I know computers sometimes hide the first mantissa bit, with this calculation, is it hidden by default or do you still have to hide it afterwards?

  • @abdullahmohammad5613
    @abdullahmohammad5613 4 роки тому

    What if the number was like 2E-40! What shall we do then?

  • @sanakashgouli2870
    @sanakashgouli2870 5 років тому

    THANK YOU SO MUCH *_______*

  • @s.u.5285
    @s.u.5285 5 років тому

    Is there a reverse video tutorial where you go from the long binary back into 23.75 ?

    • @aminabdi7026
      @aminabdi7026 5 років тому

      check this one he explains it properly
      ua-cam.com/video/AU4DtxM9gb0/v-deo.html

    • @Edw590
      @Edw590 4 роки тому +1

      I don't think it would be hard to do, after watching this. Just do the exact reverse steps he did and I think it should work. Like, Mantissa is what it's after the dot. Cool. Exponent, you just do 131 - 127 = 4, then that's the Exponent. As the dot is always after the first 1 in the binary number, then it's "1.Matissa", in this case, 1.011111. As the Exponent is 4, you just move the dot in the opposite sign of 4 (-4 --> right): 10111.11. And there it is. Then it's just convert from binary to decimal. 11 (binary) = 3. Then, 3 / 2 = 1.5 [reminder: 1]; 1.5 / 2 = 0.75 [reminder: 1] - you divide 2 times because that's how many numbers are in the decimal part of the binary. The whole part of the number (101111), 1 + 2 + 4 + 0 + 16 = 23. 23 + 0.75 = 23.75. Now, the binary to decimal part, I made it up a bit hahaha (didn't think on it when I said it wouldn't be hard hahaha). No idea if it's right or not though. Cool though, made me think hahaha. But worked, at least. Just don't know if that's the right way or not. Later I'll look for some video that does the opposite of this one to be sure of the right way.

  • @lmnop291
    @lmnop291 4 роки тому

    what would be the "127" value for double

    • @hive9349
      @hive9349 4 роки тому

      1023

    • @davidcopher6294
      @davidcopher6294 4 роки тому

      For a single-precision number, (127).
      For a double-precision number, (1023).

  • @Florrrra
    @Florrrra 6 років тому

    Anyone tell me why is 23.75(10) in the end? Thanks

    • @bensear
      @bensear 6 років тому

      the (10) shows it is base 10 denary rather than base 2 binary

  • @020-kavitham5
    @020-kavitham5 3 роки тому

    Easily explained bro

  • @laibaarraik729easyconcept
    @laibaarraik729easyconcept 2 роки тому

    Sir, i did not get exponent work....kindly derive

  • @liquidsvp
    @liquidsvp Рік тому

    on photoshop ^^^

  • @donnan7709
    @donnan7709 5 років тому

    Why is it Sign, Exponent then Mantissa. I thought it was Sign, Mantissa then Exponent

  • @Xperto_
    @Xperto_ 4 роки тому +1

    You poorly explained how to move the dot

  • @pietheijn-vo1gt
    @pietheijn-vo1gt 11 місяців тому

    I hate this type of video, where you don't explain anything you just 'do the steps'. This just looks like a bunch of magic.

  • @sanakashgouli2870
    @sanakashgouli2870 5 років тому

    THANK YOU SO MUCH *_______*