Binary 3 - Fixed Point Binary Fractions

  Рет қаралды 60,490

Computer Science Lessons

Computer Science Lessons

Күн бұрын

Пікірлер: 35
@callumbarker3190
@callumbarker3190 3 жыл бұрын
Very helpful and informative compared to my teacher's website when trying to revise for mock exams :)
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Glad to help. Perhaps your teacher would find my videos useful :)KD
@lumennganje2721
@lumennganje2721 4 жыл бұрын
you are so good you should start a series on android programming
@jccab
@jccab 11 ай бұрын
At 4:04 , why does it start with -1, followed by 0.5, 0.25, 0.125? Is it because of the two's complement for 4-bit registers?
@hmac_sha2569
@hmac_sha2569 4 жыл бұрын
Thanks for the video, helped me a lot
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
You're welcome :)KD
@BoraY5734
@BoraY5734 2 ай бұрын
in 4:27 why is the number before binary point -1 and not +1
@forgedynasties
@forgedynasties 2 ай бұрын
Because it is following the 2's Complement notation i.e MSB is always a weight of -2^n
@Agilitynitro
@Agilitynitro 7 жыл бұрын
at 3:37, The middle equation, isnt that suppose to be 1100 after binary point (55,75)?
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
No. -128+64+8+0.25 is 55.75 You need to bear in mind that we start with a negative place value. Therefore to arrive at a fractional part of .75 we need to add just 0.25 to -56
@Agilitynitro
@Agilitynitro 7 жыл бұрын
Thanks for clearing that up! Went over it now to see what I was thinking and I did not catch the part where it decreases in place values. You're very clear and detailed in your explaining so I want to point out the obvious that it's just me being dumb and not you, thanks a lot for these useful tutorials, these are the best one out here!
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
It's important to question everything. I'm glad you've now seen the light. I tell my students to show their working clearly in an exam; if this is sound, the examiner will usually forgive small arithmetic errors. Thanks for the kind comments, and for keeping me on my toes.
@boudieraurelien8531
@boudieraurelien8531 5 жыл бұрын
@@ComputerScienceLessons Thanks , i did the same mistake, it's all right now, i understood!
@icebeardoesnttalkmuch8919
@icebeardoesnttalkmuch8919 7 жыл бұрын
just one question! if the denary number given to us is negative with most significant bit as 1 then do we need to take the 2's complement of the rest of the integral part ?? or do we convert into binary without any complement?
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
Fixed point binary is an alternative to two's complement. If you are asked to express a denary number in FIXED point binary, then two's complement is irrelevant. Just assume everything is positive when you do your conversions then change the left most bit to 1. If the left most bit is ALREADY 1, then the magnitude of the number is too big to used fixed point notation.
@icebeardoesnttalkmuch8919
@icebeardoesnttalkmuch8919 7 жыл бұрын
got it! a bundle of thanks ..
@rhythmandacoustics
@rhythmandacoustics Жыл бұрын
There is 2 things I learn when watching this video. First is how to do the process and the second is how different terms they use in UK compared to North America. Denary = Decimal, Vulgar Fractions = Improper Fractions. But it appears he uses the terms ZERO and NULL (pronounced by the BRits as Nord)
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
I prefer 'Denary' to 'Decimal' but most English people say 'Decimal'. A vulgar fraction is any fraction written as a numerator on top and a denominator below (E.G. 1/2 instead of 0.5 or 3/2 instead of 1.5). An improper fraction is a vulgar fraction in which the numerator is bigger than the denominator (E.G. 3/2). Zero is the number 0, but NULL is the complete absence of a number. I sometimes use the word 'nought' (as in 'noughts and crosses') instead of 'zero'. :)KD
@rhythmandacoustics
@rhythmandacoustics Жыл бұрын
@@ComputerScienceLessons Interesting. Neve heard of "noughts" in North America. I have always thought of NULL as Zero , because NULL in German means zero, as is Hunde i hound or dog. Thanks for the insight.
@MrMeeseeksPiano
@MrMeeseeksPiano 2 жыл бұрын
and why couldn't I represent -55,75 as 11001001.1100?
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
If you were a processor designer, you could design one to do just that. However, when working in two's complement, you would typically add the fractional place values to the overall total. Hence 11001001.1100 becomes -128+64+8+1+0.5+0.25 = -54.24 You will need to do it this way if you plan to learn about floating point binary next,
@anonymouscode1616
@anonymouscode1616 4 жыл бұрын
Bro why you keeping '-' on the end of 128 bro Pls reply me bro
@ComputerScienceLessons
@ComputerScienceLessons 4 жыл бұрын
These values are stored in registers. The leftmost place value is considered to be negative by the processor. :)KD
@anonymouscode1616
@anonymouscode1616 4 жыл бұрын
@@ComputerScienceLessons the left most place will consider as negative in all device
@aycayldran8248
@aycayldran8248 2 жыл бұрын
@@ComputerScienceLessons but we added - when the beginning just 1 in floating point. What changed?
@Stupoider
@Stupoider 2 жыл бұрын
I converted the real part of -55.75 to binary using the long division method and keeping track of the remainder which gave me 00110111. If I flip the bits, I assume that's how I get -55. After that, I tried calculating the non-integer part using the long multiplication method and keeping track of the real number result - this gave me .11 for the non-integer part, which doesn't quite match the answer even when flipped. I'm assuming the method I'm using can't be applied to negative integers the way it applies to positive - but I suppose this is all easily solved if I just use the place table method instead. Another thing that confuses me is when a question says "Using two's complement", because my understanding of two's complement involves flipping the bits and adding 1 to the LSB - but that doesn't seem to entirely apply here either.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
The flipping bits and adding 1 method is problematic. You would need to look at the whole number part first and recognise that your starting point is -56. (11001000) Then you need to work out what fraction you need to add to it to arrive at -55.75, namely 0.25 (.01). I think the best approach is to use a place values table. :)KD
@mhda-c9m
@mhda-c9m 9 ай бұрын
أحسنت حياك الله شكراً لنشر العلم
@ComputerScienceLessons
@ComputerScienceLessons 9 ай бұрын
شكرًا لك :)KD
@unknowndude0074
@unknowndude0074 7 жыл бұрын
Doing this in my mock exam. Question: What is the bicimal representation of the decimal number -15.625? Answer: -1111.1.1. How? Your method gives me something completely different.
@ComputerScienceLessons
@ComputerScienceLessons 7 жыл бұрын
With 8 bits to play with, positive 15.625 is 01111.101 in fixed point binary. The left-most bit is then changed to 1 to indicate it is a negative number. Has a zero been swapped for a point in your anwser?
@abdullateefjabasa1656
@abdullateefjabasa1656 3 жыл бұрын
How amazing you are!
@ToanPham-wr7xe
@ToanPham-wr7xe Жыл бұрын
😮
Binary 4 - Floating Point Binary Fractions 1
11:20
Computer Science Lessons
Рет қаралды 352 М.
Floating Point Numbers
17:30
0612 TV w/ NERDfirst
Рет қаралды 124 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Binary 2 - Two's Complement Representation of Negative Numbers
12:56
Computer Science Lessons
Рет қаралды 121 М.
Lecture 20. Fixed Point Numbers
13:39
Embedded Systems and Deep Learning
Рет қаралды 13 М.
IEEE 754 Standard for Floating Point Binary Arithmetic
21:34
Computer Science Lessons
Рет қаралды 263 М.
Fixed Point Maths Explained - Retro Programming
17:31
NCOT Technology
Рет қаралды 3,8 М.
Fixed-point math is better than floating point (sometimes)
1:32:06
Low Byte Productions
Рет қаралды 18 М.
Fixed Point Decimal Numbers - Including Fixed Point Arithmetic
11:24
How Floating-Point Numbers Are Represented
9:56
Spanning Tree
Рет қаралды 41 М.
Floating Point Numbers (Part1: Fp vs Fixed) - Computerphile
15:41
Computerphile
Рет қаралды 162 М.
Fixed-Point Binary Conversions
10:34
MrBrownCS
Рет қаралды 13 М.
Decimal to IEEE 754 Floating Point Representation
9:27
Abishalini Sivaraman
Рет қаралды 1,5 МЛН