Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Binary number
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Fractions== [[Fractions]] in binary arithmetic [[Repeating decimal|terminate]] only if the [[denominator]] is a [[power of 2]]. As a result, 1/10 does not have a finite binary representation ('''10''' has prime factors '''2''' and '''5'''). This causes 10 Γ 1/10 not to precisely equal 1 in binary [[floating-point arithmetic]]. As an example, to interpret the binary expression for 1/3 = .010101..., this means: 1/3 = 0 Γ '''2<sup>β1</sup>''' + 1 Γ '''2<sup>β2</sup>''' + 0 Γ '''2<sup>β3</sup>''' + 1 Γ '''2<sup>β4</sup>''' + ... = 0.3125 + ... An exact value cannot be found with a sum of a finite number of inverse powers of two, the zeros and ones in the binary representation of 1/3 alternate forever. {| class="wikitable" |- ! Fraction ! [[Base 10|Decimal]] ! Binary ! Fractional approximation |- | 1/1 | 1{{pad|0.25em}}or{{pad|0.25em}}0.999... | 1{{pad|0.25em}}or{{pad|0.25em}}0.{{Overline|1}} | 1/2 + 1/4 + 1/8... |- | 1/2 | 0.5{{pad|0.25em}}or{{pad|0.25em}}0.4999... | 0.1{{pad|0.25em}}or{{pad|0.25em}}0.0{{Overline|1}} | 1/4 + 1/8 + 1/16 . . . |- | 1/3 | 0.333... | 0.{{Overline|01}} | 1/4 + 1/16 + 1/64 . . . |- | 1/4 | 0.25{{pad|0.25em}}or{{pad|0.25em}}0.24999... | 0.01{{pad|0.25em}}or{{pad|0.25em}}0.00{{Overline|1}} | 1/8 + 1/16 + 1/32 . . . |- | 1/5 | 0.2{{pad|0.25em}}or{{pad|0.25em}}0.1999... | 0.{{Overline|0011}} | 1/8 + 1/16 + 1/128 . . . |- | 1/6 | 0.1666... | 0.0{{Overline|01}} | 1/8 + 1/32 + 1/128 . . . |- | 1/7 | 0.142857142857... | 0.{{Overline|001}} | 1/8 + 1/64 + 1/512 . . . |- | 1/8 | 0.125{{pad|0.25em}}or{{pad|0.25em}}0.124999... | 0.001{{pad|0.25em}}or{{pad|0.25em}}0.000{{Overline|1}} | 1/16 + 1/32 + 1/64 . . . |- | 1/9 | 0.111... | 0.{{Overline|000111}} | 1/16 + 1/32 + 1/64 . . . |- | 1/10 | 0.1{{pad|0.25em}}or{{pad|0.25em}}0.0999... | 0.0{{Overline|0011}} | 1/16 + 1/32 + 1/256 . . . |- | 1/11 | 0.090909... | 0.{{Overline|0001011101}} | 1/16 + 1/64 + 1/128 . . . |- | 1/12 | 0.08333... | 0.00{{Overline|01}} | 1/16 + 1/64 + 1/256 . . . |- | 1/13 | 0.076923076923... | 0.{{Overline|000100111011}} | 1/16 + 1/128 + 1/256 . . . |- | 1/14 | 0.0714285714285... | 0.0{{Overline|001}} | 1/16 + 1/128 + 1/1024 . . . |- | 1/15 | 0.0666... | 0.{{Overline|0001}} | 1/16 + 1/256 . . . |- | 1/16 | 0.0625{{pad|0.25em}}or{{pad|0.25em}}0.0624999... | 0.0001{{pad|0.25em}}or{{pad|0.25em}}0.0000{{Overline|1}} | 1/32 + 1/64 + 1/128 . . . |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)