Fixed Point and Floating Point binary numbers

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 22

  • @PeneraLi
    @PeneraLi 2 місяці тому

    This is the first video I found in youtube that is spoken in English! Wonderful playing amounts.

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

    Really appreciate your explanation, Andy!
    Keep up the good work!

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

    you're a godsend Andy

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

    Thank you Andy!

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

    Great video, very helpful. Thank you.

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

    thank god finally a helpful video!!

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

    Thanks man!

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

    Thank you so much, Andy!

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

    Great video

  • @Dennis-er8xc
    @Dennis-er8xc 2 роки тому

    4:37 it should be precision instead of accuracy. anyways good explanation.
    Thanks

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

      Its resolution actually. What he is calling range is precision.

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

    Excellent video.

  • @jehan9986
    @jehan9986 6 років тому +1

    17:30 I tried doing 2's comp but I didn't get the same answer
    can you show how you did it in a comment?

    • @NerdsandDaggers
      @NerdsandDaggers 6 років тому +12

      Let me take a shot at it :)
      So the binary number under consideration is : 1.111000 (note that this is a 7 bit binary number, does not make a big difference for this explanation)
      We have the following specifications given to us:
      a. The mantissa is 4 bits long
      b. The exponent is 3 bits long
      So from the binary number, we get:
      The exponent --> 000
      The mantissa --> 1.111
      NOTE: Its important to remember that the exponent and the mantissa are both in 2s complement form here. We need to get the decimal value out of this 2s complement floating point number.
      We need to convert this 2s complement representation into decimal. Note that, we can get the decimal format of a positive 2s complement number by simply reading it as a binary number. No extra operations are needed.
      Since the left-most bit is 0, it is a positive number. Hence we consider the entire exponent as it is. Here, the value of 000 in binary = 0 in decimal. This makes things easy. We do not have to touch the decimal point in this case since 10^0 = 1.
      Some examples : If the value of exponent was 010, we would have 010 in binary = 2 in decimal ( Since the left most bit is 0, this is a positive number). And 10^2 = 100. Hence we would have to move the decimal point, 2 positions to the right.
      If the value of exponent was 110, we need to take get the original number from the 2s complement representation. We do this by considering the first index as negative and all others as positive and adding the corresponding weights. We get, 1* (-4) + 1* (2) + 0* (1) = -4+2 = -2. And 10^-2 = 0.01. Hence we would have to move the decimal point 2 positions to the left.
      Now back to the original example. Since we have not touched the decimal point at all, we simply have to interpret the original mantissa [which is 1.111 as per the specifications] . Since the left most digit of the mantissa is 1 and since the mantissa is also expressed in a 2s complement form, we can get the decimal values as,
      -1 * 2^0
      +1 * 2^(-1)
      +1 * 2^(-2)
      +1 * 2^(-3)
      ------------------
      -1 + 0.5 + 0.25 + 0.125 = -0.125
      ------------------
      Hope this helps :D

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

      Rahul Dharamdasani good effort👍

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

    Thank you

  • @m.aamirkhan3613
    @m.aamirkhan3613 5 років тому +1

    First english person doing spell mistakes 😅

  • @AwesomeAlex1337
    @AwesomeAlex1337 8 років тому +1

    First

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

    Hindi mai ni samjha sakte
    English jaruri hai kya

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

    totally poppycocks he blabbers. just disgusting..

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

    Thank you