I am having trouble to get the intuition behind the following approach: We take the fraction point (say: .642) and continuously multiply by 2, taking whatever ends up right of the point as our next number (either 0 or 1) after the fixed point in the binary number. Then we take whatever is left after the decimal point and repeat.
2026-02-22 21:45:10.1771796710
Converting Decimal to Fixed Point Number
6.9k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in BINARY
- What is (mathematically) minimal computer architecture to run any software
- Produce solutions such that $k$&$x$ $=$ $k$,in a range ($0$,$n$)
- Solve an equation with binary rotation and xor
- Number of binary sequences with no consecutive ones.
- Recurrence with $\lfloor n/2 \rfloor$
- Converting numbers to different bases
- Why does the decimal representation of (10^x * 10^y) always suffix the same representation in binary?
- Period of a binary sequence
- Contradiction in simple linear regression formula
- From unary to binary numeral system
Related Questions in FIXED-POINT-ARITHMETICS
- Banach and Caristi fixed point theorems
- Solution to rational Diophantine equations in fixed point
- Understanding error propagation in fixed-point multiplication
- Elchanan Mossel’s Dice Paradox using fixed point updating
- Can one do Conjugate Gradient for non-floating point arithmetics?
- Formalizing a self referential sentence
- How many bits do I need to store a given fraction?
- Converting Decimal to Fixed Point Number
- Composite functions and fixed point free property
- Fixed to float in archived (font2openvg) code
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
I believe there is a typo in your post; we take the integer 0 or 1 to the left of the decimal point.
The base-10 decimal $.a_1a_2a_3 ... a_n + ...$ of course represents $a_1 * 10^{-1} + a_2 * 10^{-2} + ... + a_n * 10^-n + ...$ where all the $a_i$ are digits 0 to 9.
We want to change this to the base-2 representation $.c_1c_2c_3 ... c_n + ...$ representing $c_1 * 2^{-1} + c_2 * 2^{-2} + ... + c_n * 2^-n + ...$ where all the $c_i$ are binary digits 0 or 1.
If we multiply (in base 10) $ 2 * (c_1 * 2^{-1} + c_2 * 2^{-2} + ... + c_n * 2^-n + ...) $ we obtain $ c_1 + c_2 * 2^{-1} + c_3 * 2^{-2} + ... + c_{n+1} * 2^{-n} + ...$
Thus the integer $c_1$ is separated from the rest of the fractional representation. If we then remove this $c_1$ from the decimal, another multiplication by 2 will separate the integer $c_2$, and so on, repeating either to the end or to the accuracy desired. We note that the integers 0 and 1 (only) are the same in binary and decimal.
So we take the example $x$ = .642 base 10
Multiply by 2, and we get 2 * .642 = 1.284
It is to be noted that when we "carry" a digit in base 10 multiplication, 2 times a digit from 1 to 9, the highest result is 18 so the "carry" to the units place will always be 0 or 1, as required for our binary $c_i$.
Back to the example, we take the 1 or 0 to the left of the decimal so the binary representation starts .1 and the remaining decimal is .284
Repeating
2 * .284 = .568
Zero in units
Binary representation .10...
2 * .568 = 1.136
1 in units
Binary representation is .101...
2 * .136 = .272
0 in units
Binary representation is .1010...
2 * .272 = .544 0 in units Binary representation is .10100...
2 * .544 = 1.088
1 in units
Binary representation is .101001...
This binary decimal is non-terminating but the calculation can be taken to any degree of accuracy required, or we can find the repeating pattern.
Check: The binary representation .101001... represents in decimal form $ 1 * 2^{-1} + 0 + 1 * 2^{-3} + 0 + 0 + 1 * 2^{-6}$ + further smaller terms = 1/2 + 1/8 + 1/64 + further smaller terms = .5 + .125 + .015625 + further smaller terms = .640625 + other smaller terms
We see we are approaching .642 base 10 as required.