Content deleted Content added
Revert to revision 974209016 dated 2020-08-21 17:45:38 by Widefox using popups |
copyedit |
||
Line 1:
{{short description|Internal representation of numeric values in a digital computer}}
{{refimprove|date=June 2020}}
A '''computer number format''' is the internal representation of numeric values in digital device hardware and software, such as in programmable [[computer]]s and [[calculator]]
{{cite book
| title = Inside the machine: an illustrated introduction to microprocessors and computer architecture
Line 10:
| page = 66
| url = https://books.google.com/books?id=Q1zSIarI8xoC&pg=PA66
}}</ref>
==Binary number representation==
Line 78:
A ''[[byte]]'' is a bit string containing the number of bits needed to represent a [[Character (computing)|character]]. On most modern computers, this is an eight bit string. Because the definition of a byte is related to the number of bits composing a character, some older computers have used a different bit length for their byte.<ref>{{cite web|title=byte definition|url=http://catb.org/~esr/jargon/html/B/byte.html|accessdate=24 April 2012}}</ref> In many [[Computer Architecture|computer architectures]], the byte is used to [[Byte addressing|address]]<!-- Find an external source for this --> specific areas of memory. For example, even though 64-bit processors may address memory sixty-four bits at a time, they may still split that memory into eight-bit pieces. This is called byte-addressable memory. Historically, many [[CPU]]s read data in some multiple of eight bits.<ref>{{cite web|title=Microprocessor and CPU (Central Processing Unit)|url=http://www.networkdictionary.com/hardware/mc.php|publisher=Network Dictionary|accessdate=1 May 2012|archive-url=https://web.archive.org/web/20171003225434/http://www.networkdictionary.com/hardware/mc.php|archive-date=3 October 2017|url-status=dead}}</ref> Because the byte size of eight bits is so common, but the definition is not standardized, the term [[Octet (computing)|octet]] is sometimes used to explicitly describe an eight bit sequence.
A ''[[nibble]]'' (sometimes ''nybble''), is a number composed of four bits.<ref>{{cite web|title=nybble definition|url=http://catb.org/~esr/jargon/html/N/nybble.html|accessdate=3 May 2012}}</ref> Being a [[half-byte]], the nibble was named as a play on words. A person may need several nibbles for one bite from something; similarly, a nybble is a part of a byte. Because four bits allow for sixteen values, a nibble is sometimes known as a [[hexadecimal digit]].<ref>{{cite web|title=Nybble|url=http://www.techterms.com/definition/nybble|publisher=TechTerms.com|accessdate=3 May 2012}}</ref
==Octal and
{{See also|Base64}}
[[Octal]] and
When typing numbers, formatting characters are used to describe the number system, for example 000_0000B or 0b000_00000 for binary and 0F8H or 0xf8 for hexadecimal numbers.
Line 128:
{{Main | Positional_notation#Base_conversion| l1=Positional notation (base conversion) }}
Each of these number systems is a positional system, but while decimal weights are powers of 10, the octal weights are powers of 8 and the
: <math>
Line 178:
===Floating-point numbers===
While both unsigned and signed integers are used in digital systems, even a 32-bit integer is not enough to handle all the range of numbers a calculator can handle, and that's not even including fractions. To approximate the greater range and precision of [[real number]]s, we have to abandon signed integers and fixed-point numbers and go to a "[[floating point|floating-point]]" format.
Line 316 ⟶ 315:
* [[Binary numeral system]]
* [[Gray code]]
* [[Numeral system]]
==Notes and references==
{{vectorsite}}
|