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!
==Representation== Any number can be represented by a sequence of [[bit]]s (binary digits), which in turn may be represented by any mechanism capable of being in two mutually exclusive states. Any of the following rows of symbols can be interpreted as the binary numeric value of 667: {| style="text-align:center;" | 1 || 0 || 1 || 0 || 0 || 1 || 1 || 0 || 1 || 1 |- | <nowiki>|</nowiki> || ― || <nowiki>|</nowiki> || ― || ― || <nowiki>|</nowiki> || <nowiki>|</nowiki> || ― || <nowiki>|</nowiki> || <nowiki>|</nowiki> |- | ☒ || ☐ || ☒ || ☐ || ☐ || ☒ || ☒ || ☐ || ☒ || ☒ |- | y || n || y || n || n || y || y || n || y || y |- | T || F || T || F || F || T || T || F || T || T |} [[Image:Binary clock.svg|250px|thumbnail|right|A [[binary clock]] might use [[Light-emitting diode|LEDs]] to express binary values. In this clock, each column of LEDs shows a [[binary-coded decimal]] numeral of the traditional [[sexagesimal]] time.]] The numeric value represented in each case depends on the value assigned to each symbol. In the earlier days of computing, switches, punched holes, and punched paper tapes were used to represent binary values.<ref>{{Cite web|url=https://www.bbc.com/bitesize/guides/zwsbwmn/revision/1|title=Introducing binary – Revision 1 – GCSE Computer Science|website=BBC|access-date=2019-06-26}}</ref> In a modern computer, the numeric values may be represented by two different [[voltage]]s; on a [[Magnetic field|magnetic]] [[Disk storage|disk]], [[Magnetic polarity|magnetic polarities]] may be used. A "positive", "[[yes and no|yes]]", or "on" state is not necessarily equivalent to the numerical value of one; it depends on the architecture in use. In keeping with the customary representation of numerals using [[Arabic numerals]], binary numbers are commonly written using the symbols '''0''' and '''1'''. When written, binary numerals are often subscripted, prefixed, or suffixed to indicate their base, or [[radix]]. The following notations are equivalent: * 100101 binary (explicit statement of format) * 100101b (a suffix indicating binary format; also known as [[Intel convention]]<ref name="Kueveler-Schwoch_1996">{{cite book|title=Arbeitsbuch Informatik – eine praxisorientierte Einführung in die Datenverarbeitung mit Projektaufgabe|language=de|first1=Gerd|last1=Küveler|first2=Dietrich|last2=Schwoch|date=2013|orig-year=1996|publisher=Vieweg-Verlag, reprint: Springer-Verlag|isbn=978-3-528-04952-2|id=9783322929075|doi=10.1007/978-3-322-92907-5|url=https://books.google.com/books?id=b8-dBgAAQBAJ}}</ref><ref name="Kueveler-Schwoch_2007">{{cite book|title=Informatik für Ingenieure und Naturwissenschaftler: PC- und Mikrocomputertechnik, Rechnernetze|language=de|first1=Gerd|last1=Küveler|first2=Dietrich|last2=Schwoch|date=2007-10-04|publisher=Vieweg, reprint: Springer-Verlag|edition=5|volume=2|isbn=978-3834891914|id=9783834891914|url=https://books.google.com/books?id=xQbvPYxceY0C}}</ref>) * 100101B (a suffix indicating binary format) * bin 100101 (a prefix indicating binary format) * 100101<sub>2</sub> (a subscript indicating base-2 (binary) notation) * %100101 (a prefix indicating binary format; also known as [[Motorola convention]]<ref name="Kueveler-Schwoch_1996"/><ref name="Kueveler-Schwoch_2007"/>) * 0b100101 (a prefix indicating binary format, common in programming languages) * 6b100101 (a prefix indicating number of bits in binary format, common in programming languages) * #b100101 (a prefix indicating binary format, common in Lisp programming languages) When spoken, binary numerals are usually read digit-by-digit, to distinguish them from decimal numerals. For example, the binary numeral 100 is pronounced ''one zero zero'', rather than ''one hundred'', to make its binary nature explicit and for purposes of correctness. Since the binary numeral 100 represents the value four, it would be confusing to refer to the numeral as ''one hundred'' (a word that represents a completely different value, or amount). Alternatively, the binary numeral 100 can be read out as "four" (the correct ''value''), but this does not make its binary nature explicit.
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)