• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Rounding in Binary? Does such a thing exist?

SendTrash

Platinum Member
I am in EE103, Applied Numerical Computing


now here is my question, is there rounding in binary?

like if I am told to that a machine only has a 4 bit matissa, then when I do an addition in full precisionthen on the 5th bit if its a 1 I bump the 4th bit up one? and if the 5th bit is zero, I just truncate?

Hmmmm.....

Basically my question is "Is there rounding in binary? or do I just truncate?"
 
If there is rounding with decimal numbers, I would imagine that there's rounding with binary numbers as well.

Try to write a program that replicates the situation you're talking about and see if your computer rounds.
 
Haha, I took EE103. The worst EE class at UCLA. It's not even EE related! It's just BS!! Good luck.
 
How does one get a "decimal" out of binary numbers? 🙂

And doesn't the term "decimal" refer to the number system based on 10?

FYI: Windows Calculator won't let me use decimal point on binary numbers.
 
Here's my take - If you have a 4 bit matissa, it's only going to recognise 4 bits. It won't even see the value of the 5th bit to know whether to round it.
 


<< Here's my take - If you have a 4 bit matissa, it's only going to recognise 4 bits. It won't even see the value of the 5th bit to know whether to round it. >>

my professor said to do the addition in full precision and then "round".... so in the computer it does have more bits than the matissa during calculation then is stored in memory
 


<< How does one get a "decimal" out of binary numbers? 🙂 And doesn't the term "decimal" refer to the number system based on 10? FYI: Windows Calculator won't let me use decimal point on binary numbers. >>


decimal meaning if you have 10.11b
then its 2.75d
 
Back
Top