HOW TO: Adding IEEE-754 Floating Point Numbers

Ғылым және технология

Пікірлер: 64

  • @hellnoid90
    @hellnoid908 жыл бұрын

    great example would be nice if you could show case overflow and underflow

  • @khalilmeziane5584

    @khalilmeziane5584

    5 жыл бұрын

    me too♥

  • @Data_Corruption
    @Data_Corruption6 жыл бұрын

    This video gives me life. Also yeah over/underflow examples would be cool af

  • @ryansnyder3714
    @ryansnyder37144 жыл бұрын

    Straight and to the floating point :) Great video!

  • @anweshabiswas19

    @anweshabiswas19

    9 ай бұрын

    lovely comment!!!

  • @ThePotentialCrisis
    @ThePotentialCrisis8 жыл бұрын

    Thank you so much! It makes complete sense now.

  • @euancasey96
    @euancasey968 жыл бұрын

    Thanks, this video has saved me 5 marks in my exams which i sit in about 3 hours haha

  • @waseemsheety
    @waseemsheety3 жыл бұрын

    can you do this, with a negative floating point? I'm having trouble understanding how that would impact the exponent

  • @walterlotte4215

    @walterlotte4215

    Жыл бұрын

    You add a negative number. As in, you do a substraction instead.

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

    Thank you for this video! You saved my cosc Grade!

  • @JamesSmiles4You
    @JamesSmiles4You7 жыл бұрын

    Dam i wish I found your channel before I took my midterm

  • @V3loxX
    @V3loxX7 жыл бұрын

    Thank you for the perfect explanation!

  • @robertcharmers3264

    @robertcharmers3264

    7 жыл бұрын

    Steven Petryk, Great video. So adding the values basically involves XORing the corresponding bits in each value. However I did wonder how one might go about adding values of differing bit lengths, is it sufficient to just pad the smaller of the values with zeros to force the bit lengths to match?

  • @aneco2687
    @aneco26876 жыл бұрын

    You literally saved my ass! Thank you so much!

  • @syes8049
    @syes80492 жыл бұрын

    This was SO USEFUL THANK YOU SO MUCH

  • @stevenpetryk6869

    @stevenpetryk6869

    2 жыл бұрын

    Glad it helped!

  • @kevintsai9300
    @kevintsai93003 жыл бұрын

    You Saved My Day!!

  • @emmachang2758
    @emmachang27583 ай бұрын

    bro u a lifesaver

  • @hanshoptner3528
    @hanshoptner35286 жыл бұрын

    My english sucks and I understood it. Great job man!

  • @austincen7626
    @austincen76263 жыл бұрын

    Good job m8, Greetings from China.

  • @user-cm9qb4xy7c
    @user-cm9qb4xy7c6 жыл бұрын

    nicly explined....thanks sir

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

    how do you know whether the answer is gonna be positive (0) or negative (1)?

  • @user-nx1rg9tn7z
    @user-nx1rg9tn7z8 жыл бұрын

    how did you get the x mantissa? do we always add a 1 in front of the 0?

  • @ronjeremy1232

    @ronjeremy1232

    4 жыл бұрын

    for normalized yes but not for denormalized

  • @seppneimusser5723
    @seppneimusser57238 жыл бұрын

    Thank you^^

  • @morgard211
    @morgard2114 жыл бұрын

    Thank you!

  • @wuddleduddle2437
    @wuddleduddle24376 жыл бұрын

    You are awesome

  • @maamarboudjeltia5322
    @maamarboudjeltia53225 жыл бұрын

    How do we know when the result is positive or negative ?? Don't we see if we have 1 so It's negative and when we have 0 It's positive???

  • @tahaait7236

    @tahaait7236

    4 жыл бұрын

    @Pavan Kumar what if we have the sum of two numbers that have the same exponent but one is positive and the other is negative? how you're gonne proceed?

  • @ZahidulAmin1990
    @ZahidulAmin19905 жыл бұрын

    What bout multiplication!! thank you so much

  • @hadi7619
    @hadi76193 жыл бұрын

    great it's very helpfull, can you make turtorial how to multiply it please.....

  • @slasachips44
    @slasachips443 жыл бұрын

    Why do we ignore the 1 in the left side of the decimal?

  • @erenkocadag4193
    @erenkocadag41933 жыл бұрын

    Thank you! That Video helped me a lot. Greetings from Germany

  • @emilwallin1176
    @emilwallin11762 жыл бұрын

    very good video thank you

  • @samaki8525
    @samaki85255 ай бұрын

    Thats a long ass time ago but id love a vid for opposite key signature:((

  • @miguelangelortegalopez1158
    @miguelangelortegalopez11584 жыл бұрын

    GRASIAS MI PANA MIGUEL

  • @y.yasemin
    @y.yasemin Жыл бұрын

    well explained

  • @roshanip879
    @roshanip8795 ай бұрын

    Thank you

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

    When you performed the binary addition you mentioned the answer was positive. Did you determine that the answer to the binary addition was positive because there was no overflow? If there was an overflow than that means the answer would have been negative right?

  • @moja2177

    @moja2177

    4 ай бұрын

    I have the same question, but since he used two positive numbers to begin with the answer has to be positive in this case...

  • @DanielKwist
    @DanielKwist5 жыл бұрын

    Love you

  • @anastasiamadrevska1668
    @anastasiamadrevska16683 жыл бұрын

    thanks a lot

  • @islamkritikantimuslimische4266
    @islamkritikantimuslimische42665 жыл бұрын

    Helped me a lot. Thank you! Greetings from Germany.

  • @kakerlakenmilch1155
    @kakerlakenmilch11553 жыл бұрын

    cheers m8

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

    thank you

  • @1Eagler
    @1Eagler4 жыл бұрын

    Do you need to substract the 127?

  • @johnt4086
    @johnt40862 жыл бұрын

    maybe you can show an example with most steps involved... e.g. the sum with rounding steps is not normalized and needs normalization.. etc.

  • @okboing
    @okboing4 жыл бұрын

    If it is always 1.(mantissa) * 2^(exponent) Then how do you represent zero?

  • @stevenpetryk6869

    @stevenpetryk6869

    4 жыл бұрын

    It's a special case-there's both a positive 0 and a negative 0 (sometimes you may see "-0" in JavaScript and other languages that use IEEE-754). -0 is represented as 1 0000 0000 000... +0 is 0 0000 0000 000... You can read more here! en.wikipedia.org/wiki/Signed_zero

  • @sandratawfek9576

    @sandratawfek9576

    2 жыл бұрын

    @@stevenpetryk6869 If we are adding a -ve and a +ve numbers. So there is a chance of getting a -ve result. How that would affect the result?

  • @user-gz6zh6en9w
    @user-gz6zh6en9w9 ай бұрын

    Dank dir

  • @InfiniteRabbitHole
    @InfiniteRabbitHole6 жыл бұрын

    3hr before exam .

  • @user-vm5zd5zq2e
    @user-vm5zd5zq2e3 жыл бұрын

    back at it again with the buttery 60 fps

  • @Adesanmii
    @Adesanmii5 жыл бұрын

    4:14 how do you know the sign is positiv? because 1.1100001 x 2^5 is positiv?

  • @richardbernard9873

    @richardbernard9873

    5 жыл бұрын

    The first (most significant) bit in the representation of the input numbers, in the video, x and y have a highest bit of 0, meaning they're both positive. 1 would indicate a negative floating point number.

  • @lordox11111

    @lordox11111

    2 жыл бұрын

    @@richardbernard9873 Hi I know this is pretty old but maybe you can still answer my question. I know that the first bit indicates if the number is positive or negative but how do I calculate it when I add a negative number to a postive?

  • @MattKnowsTech
    @MattKnowsTech4 жыл бұрын

    What do you do if one of the operands is negative? Add the two's complement instead of the negative number?

  • @tonicleaveland8733
    @tonicleaveland87337 жыл бұрын

    in the end, how do you know the sign-bit?

  • @tonicleaveland8733

    @tonicleaveland8733

    7 жыл бұрын

    is it because it is 1,... in the end and when it would be 0,... then it would be negative number?

  • @tonicleaveland8733

    @tonicleaveland8733

    7 жыл бұрын

    Well, I know that, Iam confused. I have two subtract one number from another. A-B, do I have to make some kind of complement of the second number?

  • @tonicleaveland8733

    @tonicleaveland8733

    7 жыл бұрын

    I understand the rest of the addition process and also that I Would have to normalise my sum in the end if it was sth like 0, 001 01 * 2^5 it becomes 1,01*2^2. I got that wrong, my question was kind of stupid. I am just confused how to do a subtraction. I would need to make some kind of twoscomplement?

  • @ohad219

    @ohad219

    7 жыл бұрын

    Toni Cleaveland in this case you do a two's compliment on B, and add result to A. The idea here is that it's easier to add negative numbers than to subtract positive ones.

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

    S merk E sayi bul 8bit ve decimal sonrs - bias Sonra komma hal ikiside

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

    Bad tutorial

Келесі