Least significant bit when there is a radix point (trivial)

  • Comp Sci
  • Thread starter JC2000
  • Start date
  • Tags
    Bit Point
In summary, when converting a binary number to an octal number, the binary digits should be grouped in sets of three starting from the least significant bit. This applies to both the integer and fractional parts, adding zero bits as necessary. Another method using groups of four bits for hexadecimal conversion is also possible but not commonly used. Each bit represents a power of 2, similar to how decimal numbers work.
  • #1
JC2000
186
16
Homework Statement
Convert ( 110101010.1011010) from binary to octal number system
Relevant Equations
When converting a binary number to an octal number I know that the binary digits must be grouped in sets of three. The grouping must begin from the least significant bit and additional zero's can be added beyond the most significant bit to ensure that all groups are a set of three.
However when there is a binary point where do I start grouping from? Is the rightmost bit considered the least significant bit even then?

The other possibility is to begin grouping from the least significant bit for the integral part and then separately begin grouping from the leftmost digit of the fractional part (adding a zero beyond the rightmost digit in case grouping is not even).

Which method is correct?
 
Physics news on Phys.org
  • #2
JC2000 said:
Homework Statement:: Convert ( 110101010.1011010) from binary to octal number system
Relevant Equations:: When converting a binary number to an octal number I know that the binary digits must be grouped in sets of three. The grouping must begin from the least significant bit and additional zero's can be added beyond the most significant bit to ensure that all groups are a set of three.

However when there is a binary point where do I start grouping from? Is the rightmost bit considered the least significant bit even then?
Yes.
For the integer part, left of the binary point, group the bits in groups of 3, from right to left. To the right of the binary point, group the bits in groups of three, from left to right, and tack on 0 bits at the right end, as necessary. You can tack on extra 0 bits at the left end, but this doesn't seem necessary.
From your example, 110 101 010.101 101 000. (two zero bits added at right end)
In octal, this would be 652.5508, although you could omit that final 0 digit.
JC2000 said:
The other possibility is to begin grouping from the least significant bit for the integral part and then separately begin grouping from the leftmost digit of the fractional part (adding a zero beyond the rightmost digit in case grouping is not even).

Which method is correct?
No, you don't want to do this. You want groups of three bits extending from the binary point in both directions.

Note that you could convert a floating point number in binary to hexadecimal using a technique that's almost the same. The only difference would be getting groups of four bits extending left and right from the binary point.
Doing this with your example would be done this way:
1 1010 1010.1011 0100, which is 1AA.B416, or 0x1AA.B4, using the 0x prefix that is the usual convention for numbers in hex. It's worth noting, though, that floating points numbers are almost never represented this way; i.e., with a "hex point." What is normally used is a representation that follows the IEEE-754 standard for floating point numbers (https://en.wikipedia.org/wiki/IEEE_754).
 
Last edited:
  • Like
Likes JC2000
  • #3
A way to remember/understand is to realize that each bit represents a power of 2, starting from the radix point (just like powers of 10 around the decimal point in our decimal system).

Using just the 5 bits around the radix point in your example would be:
10.101
Code:
   0   .   1      0      1
(1×21) + (0×20) . + (1×2-1) + (0×2-2) + (1×2-3)

Cheers,
Tom
 
  • Like
Likes JC2000

What is the least significant bit in a number with a radix point?

The least significant bit (LSB) in a number with a radix point is the bit that has the smallest value and is located to the right of the radix point. It represents the smallest unit of measurement in the number and has the least impact on the overall value of the number.

How is the least significant bit calculated in a number with a radix point?

The least significant bit (LSB) in a number with a radix point is calculated by dividing the number by the base of the number system. For example, in a binary number system, the LSB is calculated by dividing the number by 2.

What is the significance of the least significant bit in a number with a radix point?

The least significant bit (LSB) in a number with a radix point is important because it determines the precision or accuracy of the number. A change in the LSB can result in a small change in the overall value of the number, making it crucial in calculations and measurements.

How does the least significant bit affect rounding in a number with a radix point?

The least significant bit (LSB) plays a crucial role in rounding a number with a radix point. When rounding a number, the LSB is used to determine whether the number should be rounded up or down. If the LSB is 0, the number is rounded down, and if the LSB is 1, the number is rounded up.

Can the least significant bit be ignored in calculations with numbers containing a radix point?

No, the least significant bit (LSB) cannot be ignored in calculations with numbers containing a radix point. Ignoring the LSB can result in significant errors in the final result. It is important to consider the LSB in all calculations to ensure accuracy and precision.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Computing and Technology
Replies
4
Views
763
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
3K
  • Special and General Relativity
Replies
7
Views
1K
Replies
4
Views
926
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
13K
Replies
9
Views
1K
Back
Top