Decimal to IEEE 754 Floating Point Representation

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • This video is for ECEN 350 - Computer Architecture at Texas A&M University.

Komentáře • 1,2K

  • @raufasadov5572
    @raufasadov5572 Před 7 lety +448

    I have one question for you. I will appreciate it if you will answer it. 1st q: How did you find out the exponent bias for single precision is 127?

    • @Voider6211
      @Voider6211 Před 7 lety +384

      The formula for finding the Exponent is: 2^(k-1) - 1.
      Since you have 8 exponent bits, replace "k" with 8 in that formula. You get 2^7, which is 128. Subtract 1 from that, and you get 127 as your final answer. :)

    • @abishalinisivaraman7767
      @abishalinisivaraman7767  Před 7 lety +549

      We have 8 bits to represent the exponent. We can represent 2^8 = 256 numbers with 8 bits. The bias is considered to be half of it minus 1 so that we can represent both positive and negative exponents.

    • @ashish_wanderer
      @ashish_wanderer Před 6 lety +12

      thanks for this information

    • @mohdtazammul4699
      @mohdtazammul4699 Před 6 lety +70

      And it is 1023 for 64 bit which is called double precision.

    • @krishnabhat547
      @krishnabhat547 Před 5 lety +4

      Thank you :)

  • @tan8067
    @tan8067 Před 5 lety +440

    You explained this a billion times better than my Professor who has a PHD in Computers! Thank you so much! You are God sent!

    • @veselinjokanovic3032
      @veselinjokanovic3032 Před 2 lety +32

      People with PhDs in computers get swirled into talking about irrelevant and overly complex things very easily. Its hard for them to stick to the point.

    • @AnuragSingh-fd7nc
      @AnuragSingh-fd7nc Před 2 lety +11

      Professors get so much better at what they do that they forget what it's like to learn it for the first time or what it's like to not knowing these things, it becomes very obvious to them.

    • @laxativz
      @laxativz Před rokem +9

      phd in computers

    • @MAK_vid_oz
      @MAK_vid_oz Před rokem

      i agree with you sub apnu manjan bech rhy hn sajhny waly dhony prty hn

  • @andrei_balea
    @andrei_balea Před 3 lety +358

    Four years later, and my classmates and I will pass our exam due to this legend.
    BIG THANKS
    Edit: we did it boissss

  • @sammosavarpour9214
    @sammosavarpour9214 Před 2 lety +48

    You explained how to do this in less than 10 minutes and were very clear. It took my professor almost 45 minutes and no one understood what was happening. Thank you so much!

  • @ArpadHorvathSzfvar
    @ArpadHorvathSzfvar Před 6 lety +568

    I can not understand the people who voted it down. It is a very good explanation.

    • @peacekeepermoe
      @peacekeepermoe Před 5 lety +40

      Probably because they still don't understand it LOL XD

    • @kevinspacey6090
      @kevinspacey6090 Před 5 lety +11

      Probably because is yet another indian xD

    • @MrLerrab
      @MrLerrab Před 5 lety +3

      Probably because she's a scammer

    • @MrMineHeads.
      @MrMineHeads. Před 5 lety +51

      Because it is a kid and those uni students feel insecure about a kid teaching them.

    • @moksha93rd
      @moksha93rd Před 5 lety +3

      Because they're from UT

  • @tebohomokoena8483
    @tebohomokoena8483 Před 6 lety +654

    Exam in exactly 8 hours, thanks a lot

  • @Aluminiaum
    @Aluminiaum Před 11 měsíci +23

    I felt like tearing my hair out when this was being taught in my computer architecture and organization classes. Its actually unreal how well you taught this topic as opposed to working professions in some universities.
    My sincerest thank you

  • @SPARTAN_B-312
    @SPARTAN_B-312 Před 5 lety +1452

    who else but indians to save the rest of the world's IT and electronics students...

    • @MohammedRedwan
      @MohammedRedwan Před 4 lety +7

      LMAOO

    • @mayankdeshpande7212
      @mayankdeshpande7212 Před 4 lety +9

      She could be from America too you know

    • @stephan6334
      @stephan6334 Před 4 lety +24

      Yep. She is obviously from America

    • @spagussy
      @spagussy Před 4 lety +40

      @@mayankdeshpande7212 i mean if you ignore her accent sure

    • @zakenmaru8612
      @zakenmaru8612 Před 4 lety +11

      She is Indian American as this is from Texas AM University

  • @hadiasghari2266
    @hadiasghari2266 Před 5 lety +223

    Better than my prof in University

    • @pfg222
      @pfg222 Před 2 lety

      Right!!!!!!

    • @weirdinternet7
      @weirdinternet7 Před rokem

      How did he get 23 in mantissa? I still can't understand this part? Where did 23 come from?

  • @Liam-bp2rm
    @Liam-bp2rm Před 4 lety +153

    Came for the help
    stayed because "howdy"

  • @khalilebdelli6199
    @khalilebdelli6199 Před rokem +8

    5 years later , who would've thought someone from the other side of the world would find this extremely helpful and saving .
    thank you so much for doing this

    • @MAK_vid_oz
      @MAK_vid_oz Před rokem

      yes yes ofcourse studenst are stuck in university professors lecture which cointain 45 min and no one can understand any of this. Allah kry hamry teachers ko samj ajy ky student ky mind ko kessy prhaty hn we have not good enough teacher but good enogh enough degree personn p.h.d , masters etc

  • @raghav_sharma
    @raghav_sharma Před 5 lety +7

    this video was so wholesome I stopped thinking about my exam and just thought how good this kid is teaching .Hats off brother . Thanks a lot .

  • @manifi_art
    @manifi_art Před 7 lety +54

    You made such a difficult question so easy! I am linking this video to my professor so people who have difficulty with this format can get help as well! :)

  • @pittmandavis1360
    @pittmandavis1360 Před 4 lety +5

    Best explanation ever! I watched several videos and followed many tutorials, and I did not learn how to convert to binary32. Now, Abishalini's excellent method of explaining this makes it very clear. Thank you Abishalini!

  • @alexcipriani6003
    @alexcipriani6003 Před 5 lety +25

    When university prof can’t explain with the ease of this teenager 🤦🏻‍♂️

  • @tanmaychandra9434
    @tanmaychandra9434 Před 3 lety +1

    Best Video Available for this topic so far.

  • @siawoshehssan1357
    @siawoshehssan1357 Před 3 lety +57

    he really taught me better in 5 minutes than my professors have all term. good work!!!!

    • @sick0_69
      @sick0_69 Před rokem +15

      actually it's a girl

  • @Worldnme
    @Worldnme Před 7 lety +118

    have a exam tomorrow thanks a lot

  • @artaway6647
    @artaway6647 Před 5 lety +6

    Man, my exam are in 1 hour, thank you very much! The sound of pen grazing the paper is really therapeutic haha

  • @IndianaJoenz
    @IndianaJoenz Před měsícem

    My professor linked this video for our class. Nice work! Very clear, thank you.

  • @Jv-bh2kc
    @Jv-bh2kc Před 2 lety +1

    I've been trying to figure this out for 2 hours, my professors explanation sucks and this is by far the best video on CZcams thank you so much

  • @ILanoFamily
    @ILanoFamily Před 5 lety +7

    You explained this more better than my professor. Thank you!

  • @paz.255
    @paz.255 Před 4 lety +26

    I love the way she pronounces the word "two". Good explanation btw ; ).

  • @thegyaansource9219
    @thegyaansource9219 Před 4 lety +1

    I see many videos but your video means your teaching is so understandable for me . keep it up and thanks alot

  • @megarix007
    @megarix007 Před 5 lety +1

    Yet another russian dude here. THANK YOU SO MUCH!!! Wow, just wow. Best explanation video ever, thank you for taking your time)

  • @PierLim
    @PierLim Před 5 lety +11

    You have a gift for teaching, great job!

    • @weirdinternet7
      @weirdinternet7 Před rokem

      How did he get 23 in mantissa? I still can't understand this part? Where did 23 come from?

  • @ultralife7727
    @ultralife7727 Před 4 lety +19

    This was the most clear and helpful lesson I ever had on youtube I think. Thanks a lot !

  • @aphelmusonda5253
    @aphelmusonda5253 Před 3 měsíci

    I don't actually hesitate to subscribe to such a serious and rich content channel. This lady is very powerful.
    Am doing computer science at Copperbelt University of Zambia, you're very helpful, keep producing contents more ❤❤

  • @thatclintguy
    @thatclintguy Před 4 lety +1

    My man, this is genius - been around PLCs for going on 13 years and never have I fully understood how 32 bit floating point decimal registers work haha. Well done! Wish I could give you double thumbs up :)

    • @aeebeecee3737
      @aeebeecee3737 Před 4 lety

      thatclintguy In fact fully understanding ain’t necessary for so many ones.

  • @aaronlee660
    @aaronlee660 Před 5 lety +3

    a clear explanation that saves a lot of reading time. Much appreciated

  • @user-is9fv5bi7x
    @user-is9fv5bi7x Před 7 lety +35

    Thank you very much. Sorry for my bad english, I am from Russia. No one could explain this method such easy.

  • @richmondokine5280
    @richmondokine5280 Před rokem

    This concept has been obscure to me for a very long until I watched your video.
    Thanks so much. This is golden

  • @user-vn6bj3xb7k
    @user-vn6bj3xb7k Před 6 měsíci

    i can't explain how much you saved me... really thank you

  • @MrGuitarMix
    @MrGuitarMix Před 5 lety +126

    Everyone here for exam who know they will never need IEEE 754 notation in life anymore?

    • @stephan6334
      @stephan6334 Před 4 lety +5

      Pressure sensor at work, spits out IEEE754 on UART. :)

    • @ProtoForte
      @ProtoForte Před 4 lety +2

      for some coding projects it's good to know
      for example if you have limited space on any device, it's good to know that floating point in this notation only requires 4 bytes (32 bits)

    • @RedBar3D
      @RedBar3D Před 4 lety +1

      I like to know what I'm working with.

    • @mordecai8707
      @mordecai8707 Před 4 lety

      you can say that for any subject except STEM

    • @kevinburger4749
      @kevinburger4749 Před 3 lety +1

      In embedded systems programming, a programmer is often writing code which operates at a low level by dealing with bytes and bits. Suppose you are writing code for a product which employs a microcontroller and you are using some communication protocol, e.g., SPI or I2C, so the microcontroller can communicate with an external device, e.g., a shift register. Suppose we are transmitting the value of a floating point number, e.g., you are programming in C and the data type of the value is double, which is represented in IEEE 754 notation. During testing you discover that the shift register is receiving a value which is different than the value stored in a variable in the microcontroller, i.e., you have a bug in the transmission code. So, you hook up your oscilloscope so you can view the signal being transmitted. The signal should go high when transmitting a 1 bit and it goes low when transmitting a 0 bit. You need to determine where a wrong bit is being transmitted because that will help you locate the bug. Therefore, you need to know the IEEE 754 binary floating point representation of the double value being transmitted so you will know when a 1 or 0 bit should be sent.

  • @dubaifatimaali
    @dubaifatimaali Před rokem

    This was far most easiest and interesting explanation anyone had ever done it. Good job buddy 👍 and thankyou.

  • @Zapdatt
    @Zapdatt Před rokem +1

    I have came back to this video so many times. The explanation is just so good and easy to understand, thank you very much!

  • @jayblankenship1553
    @jayblankenship1553 Před 4 lety +3

    "howdy", as an American I'm forced to give you 2.5x respect for that.,

  • @rolipoli7601
    @rolipoli7601 Před 4 lety +12

    u have the cutest voice

    • @MrKevin-wu8re
      @MrKevin-wu8re Před 3 lety

      Helo, we ar tring to help yu, these es da maicrosoft soport teem

  • @lorian4366
    @lorian4366 Před 4 lety +1

    I have to say, I have rarely seen such a splendid, easy to understand explanation on how to convert decimals. Good job on you for making this vid; there's a reason it has so many views.

  • @alicialedesma417
    @alicialedesma417 Před 5 lety +2

    This is the best explanation I have yet to hear! Wonderful. You did a great job. Now I am ready for my quiz tomorrow.

  • @diogocortez6023
    @diogocortez6023 Před 6 lety +4

    Melhor que muitas aulas em universidades! Parabéns!

  • @jacobsanchez1587
    @jacobsanchez1587 Před 5 lety +61

    Hello!
    (Sorry for my bad English.)
    -From America

  • @RadiantPaladin4
    @RadiantPaladin4 Před rokem

    I appreciate this video a lot. My professor has a very thick accent, and while I know he really tries his hardest to help us learn the material, sometimes it can be difficult to parse what he's saying. This explained it very well, thank you!

  • @Fedeposter
    @Fedeposter Před rokem

    videos like this make some part of youtube way way better than college.

  • @prasanjithlorensuhewa6689

    I have one question for you.I will appreciate it if you will answer it.In this IEEE standard there are two terms called Min exponent and Max exponent.In single precision(32 binary format) values of these terms are -126 and 127 respectively.So we get exponent bias by Max exponent.Could you please tell me what is the use of Min exponent and how is it determined?

    • @johncochran8497
      @johncochran8497 Před 2 lety +1

      The IEEE standard has 4 different concepts to handle.
      1. Non infinite normalized numbers
      2. Non infinite denormalized numbers
      3. positive or negative infinity.
      4. Not a number. Used for error indications that propagate so it doesn't have to be checked for every mathematical operation.
      Notice that the range -126 t0 127 represents a total of 254 distinct values (don't forget the 0). But 8 bits can represent 256 distinct values. The 2 extra values are used to handle infinities and denormalized numbers.
      Number format
      s eeeeeeee mmmmmmmmmmmmmmmmmmmmmmm
      S = s
      E = eeeeeeee
      M = mmmmmmmmmmmmmmmmmmmmmmm
      if E is
      00000000, the number is denormalized, value is (-1)^S * 0.M * 2^(-126)
      00000001 - 11111110, number is normalized, value is (-1)^S * 1.M * 2^(E-127)
      11111111, number is either infinity (M=0), or a NaN (Not a Number) if M 0.
      Notice that for the denormal numbers, that the most significate digit of the mantissa is 0, while for the normalized numbers, the most significant digit is 1. The most significate digit IS NOT EXPLICITLY STORED. That lets the IEEE standard squeeze in an extra digit of precision. So binary32 is consider to have 24 binary digits of precision, while only storing 23 of those digits. Same for binary64. Considered to have 53 digits of precision, while storing only 52.
      By the IEEE standard, Min will always have a magnitude one less than Max.
      So for binary32, we have 8 bits for the exponent. Since we have to account for positive and negative exponents, we have Max = 2^(8-1)-1 = 2^7-1 = 128-1 = 127
      Min = -(Max-1) = -(127-1) = -126
      For binary64, we use 11 bits for the exponent, so
      Max = 2^(11-1)-1 = 2^10 - 1 = 1024 -1 = 1023
      Min = -(Max-1) = -(1023-1) = -1022
      Doing it that way allows for the all zeros or all ones value of the exponent to handle denormal numbers as well as the special value infinity and the Not a Number error indications.

    • @TheAntonioclewis
      @TheAntonioclewis Před 2 lety

      @@johncochran8497 John can I pay you to tutor me lol.. It is funny but I am serious. Please reply

    • @johncochran8497
      @johncochran8497 Před 2 lety

      @@TheAntonioclewis I'm willing to help you, but don't require any money. Perhaps this book drive.google.com/file/d/1-nWgEU-RcliZGmYIEQmoy43UocDUhHUQ/view?usp=sharing will help a bit.

  • @murigig
    @murigig Před 4 lety +2

    Forget about IEEE754.😪..your handwriting should be a font 🤯

  • @manuelwills6149
    @manuelwills6149 Před rokem

    This is a practical example of abstraction! Making complicated system so easy and simple to comprehend!! Million THANKS!!!!! Abishalini Sivaraman!!!!

  • @MAK_vid_oz
    @MAK_vid_oz Před rokem +1

    bhut acha smjhaya ha aapny mn 3 din sy isko smjny ki koshish kr rhi hun thank u for this video from Pakistan

  • @obada.
    @obada. Před 4 lety +6

    every one in here is preparing for a damn exam except me. i'm not even studying IT, but i'm deeply interested in kinda things

  • @SPeeDKiLL45
    @SPeeDKiLL45 Před 6 lety +4

    you hope it was helpful? hell yeah it was !

  • @likeit1982
    @likeit1982 Před 3 lety

    The best explanation after after watching many videos. Congratulations

  • @shashankbhosagi
    @shashankbhosagi Před 2 lety

    Short and Best Explanation of IEEE 754 format for Floating Point Representation I found on CZcams
    Nice :)
    Thank You!!!🙂🙂

  • @Ashley-tn6jh
    @Ashley-tn6jh Před 5 lety +6

    81 pieces of shit,that was so good

  • @mumtajbegam3942
    @mumtajbegam3942 Před 5 lety +9

    Your voice is so pretty

    • @MyGdoggy
      @MyGdoggy Před 5 lety

      pretty sure its a young boy

    • @jetacedark123
      @jetacedark123 Před 5 lety

      @@MyGdoggy the channel has a girls first name, and plus this is for a university class so she cant be a young boy

    • @MyGdoggy
      @MyGdoggy Před 5 lety

      @@jetacedark123 Yeah you're right, she has a different video and you can see she's a girl. My bad.

    • @ItsRawrTopia
      @ItsRawrTopia Před 5 lety

      @@MyGdoggy you so funny... This kid is funny

  • @ernestoyounes2946
    @ernestoyounes2946 Před 4 lety +2

    I just watched this video about an hour ago and it helped me on my exam a lot, thank you so much dear!!!

  • @azamjandali867
    @azamjandali867 Před 4 lety

    even though the accent is not the best, each time I bump into an Indian tutorial suddenly everything is super good explained and easy. Thank you !

  • @abdullahaksar9084
    @abdullahaksar9084 Před 5 lety +1

    Thx you so much...No one can explain this thing as easy as you did .....Even I can`t understand this thing from my teacher ....

  • @dibbyabarua9499
    @dibbyabarua9499 Před 3 lety +1

    You are Awesome!!! Very clear and concise explanation, and very detailed example.

  • @andrewzerwekh6855
    @andrewzerwekh6855 Před 3 lety

    This was excellent. Your brain is far smarter than mine. Thank you for your knowledge. Also, your handwriting is great.

  • @jerome8660
    @jerome8660 Před 5 lety

    Over 1 hour in University explained in 10 Minutes, you are great man! I have understood everything even without voice

  • @elwont
    @elwont Před 4 lety

    this video is explaining this topic clearer, preciser and easier understandable than any other out there right now... big up!!! get tha credits!!

  • @pranavkumar7500
    @pranavkumar7500 Před rokem

    Thank you very much. Hard to believe students are becoming better at teaching other student than professors right now. For those wondering about the exponent bits. IEEE exponent - 127 = actual exponent

  • @beloiscool
    @beloiscool Před 4 lety +2

    This kid just explained it better than my bumbling computer science teacher

  • @uniquemaths2227
    @uniquemaths2227 Před 3 měsíci

    Great Explanation.You have Explained everything with this one problem .
    Awesome 😇

  • @ikkatosh231
    @ikkatosh231 Před 3 lety

    Legend, thank you

  • @mrkyledescoudres1502
    @mrkyledescoudres1502 Před 3 lety +1

    One day, a computer (or robot, or AI, you know, the thing) would watch this video and would deeply meditate upon philosophical questions.

  • @shannob1159
    @shannob1159 Před 3 lety +1

    Exam in about 8 hours, this saved my life

  • @ajitsharma5960
    @ajitsharma5960 Před 5 lety +1

    I just love your handwriting🕊🕊🕊🕊

  • @pamsquad982
    @pamsquad982 Před rokem

    thanku lady, aik or thiii jis nay sara smjha k end py war dia, thanks for having my back

  • @Edin12n
    @Edin12n Před 5 lety +1

    Wow! Thank you so much. The explanation was very clear. One of the best technical videos I've seen on CZcams. You have a real talent for explaining. Please keep helping us : )

  • @ikibkilam8383
    @ikibkilam8383 Před 6 měsíci

    Ms. Sivaraman, you are a natural teacher. Excellent explanation.

  • @luxraider5384
    @luxraider5384 Před 3 lety

    Best video so far to explain binary conversion

  • @pavlokravchenko7143
    @pavlokravchenko7143 Před 5 lety

    zio, era tutto il giorno che cercavo di capire questa roba. sono bastati dieci minuti del tuo video per rendere tutto chiaro. hai volato

  • @stevewang314
    @stevewang314 Před 2 lety

    Her voice and the sound of pen scratching on paper gave me ASMR..

  • @letrangN
    @letrangN Před 6 lety

    u just saved my life. didnt understand a single thing from my teacher.thank you

  • @marianov7927
    @marianov7927 Před 6 lety +1

    Thank you so much!!! I didnt understand it at all when my professor tried to explain it, and you explained it better in just 9 minutes. Great work :)

    • @weirdinternet7
      @weirdinternet7 Před rokem

      How did he get 23 in mantissa? I still can't understand this part? Where did 23 come from?

  • @mrkamal.officiel
    @mrkamal.officiel Před 6 lety

    I think no one can say that this tutoriel is not amazing,good job & good hand-writing & beautiful voice,really very thanks to you Abishalini !!

  • @MICROSEA
    @MICROSEA Před 2 lety

    promise you are the best more than my teacher now in university

  • @kashj1059
    @kashj1059 Před 7 lety

    very good detailed explanation..... even those who dont know anything will understand by this explanation.... great work!!!

  • @sonamsehgal3741
    @sonamsehgal3741 Před 2 lety

    May god bless you dear. This was one of the best explanations. I am speechless 🔥🔥

  • @ODja-eb4gf
    @ODja-eb4gf Před 5 lety +1

    I want to personally thank you for this. You're great.

  • @infectedsanin
    @infectedsanin Před 2 lety

    You are a legend. Thank you for saving me before my mid terms.

  • @1337FaJa
    @1337FaJa Před 5 lety

    Thank you very much for explaining me the subject in less then 10 minutes while my professor couldn't explain it in 3.5 hours

  • @maikrajncic5309
    @maikrajncic5309 Před 2 lety

    You saved me for my exam tomorrow thank you so much

  • @TheGallyp
    @TheGallyp Před 4 lety

    This video so simple to understand. Thanks much. This was more helpful than anything else today.

  • @TheMrjaskiratsingh
    @TheMrjaskiratsingh Před 4 lety

    Stumbled upon this video out of curiosity but the explanation is so good that I watched the full video, and I'm probably never ever going to need this but the tutorial was so good that I got a fairly good understanding of IEEE 754 anyhow 😅

  • @pfg222
    @pfg222 Před 2 lety

    Wow amazing video.
    Not even my professor can get me to learn this that easy. Thank you so much for this video.

  • @Shangnang
    @Shangnang Před 3 lety

    This guy explained this better in sub 10 mins than my professor who took 3 hours... ty abishalini :`)

  • @OlaDuda
    @OlaDuda Před 5 lety +1

    You have already saved my life! Greetings from Poland. Good job :)

  • @waltpires231
    @waltpires231 Před 5 lety

    Oh Jesus, this explanation is awesome...you made it very clear and simple to understand.

  • @haos4574
    @haos4574 Před 5 lety +1

    excellent explanation, all of a sudden I understand how and why, much appreciated.

  • @VijaySingh-hz6vx
    @VijaySingh-hz6vx Před 6 lety +2

    After watching this video there is no confusion now, in IEEE 754 Thank you.

  • @akhmadsw54
    @akhmadsw54 Před 2 lety

    Finally, the most precise explanation of this. Thank you so much! You have provided an ultimate explanation!

  • @jeremyts9032
    @jeremyts9032 Před 6 lety

    You haved explaining a thousand times better than my teacher

  • @TheArtist558
    @TheArtist558 Před 6 lety

    wow, u just cleared the thing in which i was confused from last 4 years. thank you so much.

  • @allenjoseph6848
    @allenjoseph6848 Před 5 lety +1

    Please upload more videos. Your explanation helps big time. God bless you always.

  • @mikeahmed7092
    @mikeahmed7092 Před 5 lety

    Excellent Job! You Explained it Much better than my professor and the book combined.

  • @adamloepker8057
    @adamloepker8057 Před rokem

    Best summary so far, thank you!

  • @madusharathnayaka8239
    @madusharathnayaka8239 Před 4 lety

    My University pdf has provided this explanation only with 2 lines. I could not understand. This video helped me to understand. Thank you very much.

  • @docmaynard1934
    @docmaynard1934 Před 3 lety

    Excellent job explaining a simple process that so many cannot explain!