Hexadecimal - meaning of word
Rozmiar: 8938 bajtów


Hexadecimal



In mathematics and computer science, hexadecimal or simply hex is a numeral system with a radix or base of sixteen usually written using the symbols 0–9 and A–F or a–f. The hexadecimal system was first introduced to the computing world in 1963 by IBM. For example, the decimal numeral 79 whose binary numeral system representation is 01001111 can be written as 4F in hexadecimal (4 = 0100, F = 1111). It is a useful system in computer because there is an easy mapping from four binary numeral systems to a single hex digit. A byte can be represented as two consecutive hexadecimal digits. It was IBM that decided on the prefix of "hexa" rather than the proper Latin but more politically incorrect prefix of "sexa". The word "hexadecimal" is strange in that ''hexa'' is derived from the Greek language έξι (hexi) for "six" and ''decimal'' is derived from the Latin for "ten". An older term was the pure Latin "sexidecimal", but that was changed because some people thought it too risqué, and it also had an alternative meaning of "base 60". However, the word "sexagesimal" (base-60) retains the prefix. == Representing hexadecimal ==
{| border="1" cellpadding="3" cellspacing="0" ! Hex !! Bin !! Dec |- | 0 || 0000 || 0 |- | 1 || 0001 || 1 |- | 2 || 0010 || 2 |- | 3 || 0011 || 3 |- | 4 || 0100 || 4 |- | 5 || 0101 || 5 |- | 6 || 0110 || 6 |- | 7 || 0111 || 7 |- | 8 || 1000 || 8 |- | 9 || 1001 || 9 |- | A || 1010 || 10 |- | B || 1011 || 11 |- | C || 1100 || 12 |- | D || 1101 || 13 |- | E || 1110 || 14 |- | F || 1111 || 15 |}
Some hexadecimal numbers are indistinguishable from a decimal number (to both humans and computers). Therefore, some convention is usually used to flag them. In typeset text, the indication is often a subscripted suffix such as 5A316, 5A3SIXTEEN, or 5A3HEX. In computer programming languages (which are nearly always without such typographical distinctions as subscript and superscript) a wide variety of ways of marking hexadecimal numbers have appeared. (These are also seen even in typeset text.) Some of the more common textual representations: * Ada programming language and VHDL enclose hexadecimal numerals in based "numeric quotes", e.g. "16#5A3#". (Note: Ada accepts this notation for ''all'' bases from 2 through 16 and for both integer and real types.) * C programming language and languages with a similar syntax (such as C Plus Plus, C Sharp programming language and Java programming language prefix hexadecimal numerals with "0x", e.g. "0x5A3". The leading "0" is used so that the parser can simply recognize a number, and the "x" stands for hexadecimal (c.f. 0 for Octal). The "x" in "0x" can be either in upper or lower case. * In HTML, hexadecimal m:character references also use the x: ֣ should give the same as ֣ – with your browser ֣ and ֣ respectively (Hebrew accent munah). * Some Assembly language indicate hex by an appended "h" (if the numeral starts with a letter, then also with a preceding 0), e.g., "0A3Ch", "5A3h". * Postscript programming language indicates hex by a prefix "16#". * Common Lisp use the prefixes "#x" and "#16r". * Pascal programming language, other assemblers (AT&T, Motorola), and some versions of BASIC programming language use a prefixed "$", e.g. "$5A3". * Some versions of BASIC programming language, notably Microsoft's variants including QBasic and Visual Basic), prefix hexadecimal numerals with "&H", e.g. "&H5A3"; others such as BBC BASIC just used "&" (used for octal in Microsoft's BASIC!). * Notations such as X'5A3' are sometimes seen; PL/I uses such notation. There is no single agreed-upon standard, so all the above conventions are in use, sometimes even in the same paper. However, as they are quite unambiguous, little difficulty arises from this. The most commonly used (or encountered) notations are the ones with a prefix "0x" or a subscript-base 16, for hex numbers. For example, both 0x2BAD and 2BAD16 represent the decimal number 11181 (or 1118110). [[Image:Hexidecimal Multiplication Table.png|right|thumb|250px|A hexadecimal multiplication table]] ==Uses== A common use of hexadecimal numerals is found in HTML and Cascading Style Sheets. They use hexadecimal notation (hex triplets) to specify colours on web pages; there is just the # symbol, not a separate symbol for "hexadecimal". Twenty-four-bit color is represented in the format #RRGGBB, where RR specifies the value of the Red component of the color, GG the Green component and BB the Blue component. For example, a shade of red that is 238,9,63 in decimal is coded as #EE093F. This syntax is borrowed from the X Window System. In URLs, special characters can be coded hexadecimally, with a percent sign used to introduce each byte; e.g., http://en.wikipedia.org/wiki/Main%20Page The canonical written form of numeric IPv6 addresses represents each group of 16 bits as a separate hexadecimal number, to ease reading and transcription of the 128-bit addresses. == Fractions == As with other numeral systems, the hexadecimal system can be used in forming vulgar fractions, although Recurring decimal are common: {| border=0 cellspacing=0 cellpadding=2 width=640 |width= 9% height=0| |width= 4%| |width=10%| |width= 9%| |width= 4%| |width=12%| |width= 9%| |width= 4%| |width=15%| |width= 9%| |width= 4%| |width=11%| |- |align=right| 1/ 0x1 ||
= || 0x1 |align=right| 1/ 0x5 ||
= || 0x0.3 |align=right| 1/ 0x9 ||
= || 0x0.1C7 |align=right| 1/ 0xD ||
= || 0x0.13B |- |align=right| 1/ 0x2 ||
= || 0x0.8 |align=right| 1/ 0x6 ||
= || 0x0.2A |align=right| 1/ 0xA ||
= || 0x0.19 |align=right| 1/ 0xE ||
= || 0x0.1249 |- |align=right| 1/ 0x3 ||
= || 0x0.5 |align=right| 1/ 0x7 ||
= || 0x0.249 |align=right| 1/ 0xB ||
= || 0x0.1745D |align=right| 1/ 0xF ||
= || 0x0.1 |- |align=right| 1/ 0x4 ||
= || 0x0.4 |align=right| 1/ 0x8 ||
= || 0x0.2 |align=right| 1/ 0xC ||
= || 0x0.15 |align=right| 1/ 0x10 ||
= || 0x0.1 |} Because the radix 16 is a square (42), hexadecimal fractions have an odd period much more often than decimal ones. Recurring decimals occur when the denominator in lowest terms has a prime factor not found in the radix. In the case of hexadecimal numbers, all fractions with denominators that are not a power of two will result in a recurring decimal. == See also == *numeral system for a list of other base systems. *hexspeak *Nibble (1 hexadecimal digit can exactly represent 1 ''Nibble'') *Hexadecimal time * [http://leetkey.mozdev.org This FireFox extension supports ASCII/Hex conversions and typing] ==External links== *[http://www.intuitor.com/hex/ Intuitor Hex Headquarters] - A site dedicated to changing the traditional base 10 (decimal) standard to hexadecimal. * [http://www.insidereality.net/site/content/math/base_conversion.php Simple Conversion Methods] ===Calculators=== *[http://www.iboost.com/tools/number.htm Hex/Decimal/Binary Converter] (integer only) *[http://www.statman.info/conversions/hexadecimal.html Hex/Decimal Converter] Computer arithmetic Computing Numeration Positional numeral systems th:เลขฐานสิบหก

Hexadecimal



I rewrote this paragraph: :The word "hexadecimal" is strange in that "hexa" is derived from Greek ''six'' and "decimal" is derived from Latin ''ten''. The original term was the fully-Latin "sexidecimal", but that was changed because some people thought it to be too racy. The correct Greek would be hexagesimal, which some purists use. The first sentence is OK. The second sentence is true, but "sexidecimal" seems to be used to mean "base 60" more often than "base 16". The third sentence is untrue, because "hexagesimal" (if it exists in English) is composed of a Greek prefix ''hexa-'' and a Latinate suffix ''-gesimal'', as in ''sexagesimus'', meaning "sixtieth". A Google search shows that "hexagesimal" is used in Spanish but hardly ever in English, and even then its meaning is divided between "base 16" and "base 60". My conclusion is that there is no word with a pure pedigree that is copper-bottom guaranteed to mean "base 16". -- User:Heron == Is it really strange to combine Greek & Latin in an English word ? == I have been told that Greek/Latin hybrids are actually not so uncommon in English. Off-hand the only one that I can recall, however, is automobile--which in modern Greek is aftokeenito, not using the Latin backend :) The most well known one to me is ''television'' -- User:Karl Palmen. == Alternative Digit Representations == Raul654 has said "In some representations, the characters ~, !, @, #, $ and % are used instead of ABCDEF (respectively). " I'd like to know where? Is % an acceptable digit? -- User:Karl Palmen 3 June 2004 :An anon contributor added that much. I rewrote it to make it blend into the article better. I'm not 100% sure if the statement is true, though. User:Raul654 13:19, Jun 3, 2004 (UTC) :I was wondering that, too. User:Marnanel 17:19, 23 Jun 2004 (UTC) ::I deleted the obscure figures (~ to %) introduced by User:206.80.111.48 on June 3.
Before reintroducing them, please give sources of their use. User:Paul Martin 18:48, 7 Dec 2004 (UTC) == True or false?? == True or false: this word is common because people fail to take notes on whether a prefix is Greek numerical prefixes or Latin numerical prefixes. The correct sequence from 11-19 is: *11. undecimal *12. duodecimal *13. tredecimal *14. quattuordecimal *15. quindecimal *16. sexdecimal *17. septendecimal *18. octodecimal *19. novemdecimal User:66.245.104.133 17:40, 2 Aug 2004 (UTC) :There are many hybrid words like this, such as Homosexual#Etymology. User:Hyacinth 05:19, 9 Apr 2005 (UTC) == X'5A3' representation == A discussion at Talk:Newline has reminded me that I run into the notation X'5A3' every so often, in documents such as protocol specifications. (At least, I ''believe'' it's a representation of hex literals.) Does anyone know where it comes from? Is it tied to a particular programming language or culture? User:JTN 21:57, 2004 Oct 4 (UTC) ''Update:'' when Googling it seems to come up in IBM-ish contexts more often than not, and PL/I appears to have this or similar notation [http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IBM3LR10/3.3.2.6?SHELF=ibmsh310&DT=20020917160741&CASE=]. Don't know if it was around before that. User:JTN 23:01, 2004 Oct 4 (UTC) ==Table in article - Opera rendering== Isn't the table on the right a little wrong? After 9 in dec, the table seems to be mirrored, and decimal values are listed under binary and vice versa. --User:Spug 13:03, 3 Nov 2004 (UTC) :Looks fine to me. What's your browser? --User:JTN 14:00, 2004 Nov 3 (UTC) I use Opera, and indeed, it looks fine in both IE and FF while Opera flips the table after dec 9. How strange. --User:Spug 10:17, 4 Nov 2004 (UTC) :But it's preformatted text! (At least the version served to my Mozilla Firefox, and also the Wiki source.) How bizarre. --User:JTN 15:16, 2004 Nov 4 (UTC) I know! [http://spug.hazardlabs.com/secret/binary_table.gif Here's a screenshot.] I have no idea why that's happening, but at least it's not the article's fault, so nevermind :) --User:Spug 22:21, 4 Nov 2004 (UTC) :That looks almost like it might be bidirectional script support misfiring. --User:JTN 10:55, 2004 Nov 5 (UTC) Yeah... What could be triggering that, though? I've posted a topic about it in the Opera forums. --User:Spug 11:21, 5 Nov 2004 (UTC) ::any chance of a link to the forum post? User:Plugwash 23:59, 9 Apr 2005 (UTC) == Fractions == Why exactly is hexadecimal "quite good" for forming fractions? I don't see how it's particularly better than any other numeral system. -- User:Wapcaplet 04:14, 6 Nov 2004 (UTC) :To me, it even seems "quite bad" for forming fractions, since it only has one prime factor, almost as bad as base 10... User:Cyp User talk:Cyp 2004年11月6日 (土) 14:30 (UTC) ::It is good because not only does 16 have many divisors, but also 16 is one more than 15, which divides into the next two prime numbers after 2 (3 and 5), so one also gets a good set of repeating fractions. For that reason is much better than either Octal (base 8) or base 32. It may possibly be considered better than Duodecimal (base 12) because 11 is prime. User: Karl Palmen, 8 December 2004 ::If you wan't to represent as many fractions as possible without reccurance then lots of prime factors are good (so base 10 is better than base 16 in this respect). I can't really say anything about the niceness of recurring fractions as i don't know that sort of maths. == Hexadecimal notation using ABCDEF and IBM? == The article currently has two mentions of IBM as associated with the use of alphabetic characters A to F to represent numbers in hexadecimal representation. Does anyone have a link for a reference that would describe this as a notation first used by IBM? - User:Bevo">User:Bevo|User:Bevo 05:34, 10 Dec 2004 (UTC) Neither Carl Friedrich Gauss (1777-1855) nor Adrien-Marie Legendre (1752-1833) used this digits. I ignore if John W. Nystrom – the ''real'' inventor of hexadecimal time format (and ''not'' Mark V. Rogers of intuitor.com) – already used them. [http://www.oughtred.org/pat1851.html (The same as...)]
Before the 20th century, hexadecimal digits are ''very'' seldom used and that's why no standard existed. Since IBM adopted this format, it is universally recognised. That's a fact. But ''surely'' IBM not used them first. As yet, it's not clearly established ''who'' used them first and since when. (1930th?).
Anyone knows more on this interesting topic? User:81.57.112.41 15:10, 10 Dec 2004 (UTC) == "SHOL" == ''Since several years the International Bureau for the hexadecimal metric system (SMH) proposes a so-called "omni-literal hexadecimal system" (SHOL).'' Could someone provide a reference for this? A [http://www.google.com/search?hl=en&lr=&client=firefox&rls=org.mozilla%3Aen-US%3Aunofficial&q=omni-literal+hexadecimal+system&btnG=Search Google search] for "omni-literal hexadecimal system" turned up precisely one link: this article. A [http://www.google.com/search?hl=en&lr=&client=firefox&rls=org.mozilla%3Aen-US%3Aunofficial&q=SHOL+hexadecimal&btnG=Search search for] SHOL hexadecimal turned up this article first, followed by a lot of unrelated things. I also fail to see how the use of arbitrary consonants for the hex digits is "remarkable, logical and consistent"; the paragraph in question ends "See also the external link below", though none of the external links pertains to this representation. The paragraph was an [http://en.wikipedia.org/w/wiki.phtml?title=Hexadecimal&diff=7959826&oldid=7959779 anonymous contribution], and I am thinking of removing it unless some supporting evidence appears. I'm open to the possibility that these facts are translated from another language, which would explain the lack of Google hits, but if that is the case then we should remove the claim that this system is receiving "growing worldwide attention" and try to put it in proper perspective. If it is an extremely niche-oriented system, as I suspect, it probably shouldn't be mentioned at all, and certainly shouldn't be included in the table of hex representations as though it were widely accepted. -- User:Wapcaplet 00:38, 12 Dec 2004 (UTC) * Edit: Should have looked at the French site. Indeed, the anonymous contributor also provided a link to [http://www.florencetime.net/ this rather poorly-designed site], in French (with English also available). It appears to me as though this sytem appears in one publication, by one person (or organization). If it has been accepted elsewhere, perhaps we could leave it in the article. If not, it should go. -- User:Wapcaplet 00:42, 12 Dec 2004 (UTC) * It's my feeling also that it should go or at least be made much less prominent, but I wasn't feeling energetic enough to research its notability. I note that despite its apparently French origin, doesn't appear to mention it. -- User:JTN 11:42, 2004 Dec 12 (UTC) I think I'll go ahead and remove the SHOL references. If SHOL turns out to be significant, anyone who cares to can pillage the article history and restore it. -- User:Wapcaplet 17:19, 12 Dec 2004 (UTC) == SHOL proposal & Fractions removal == I think, Wapcaplet, you've acts a little quick. You start a discussion and a few hours later, you erase this very interesting insertion relative to the SHOL. Only one person had time to answer you. I visited the site of which you deleted the external link. You are right, this is a "rather poorly-designed site". But it's charming and first of all its ''contents'' are highly interesting. Unfortunately my French is not perfect, but good enough to understand, that it exposes ''new things'' clearly and without blinders. Whoever made it, he should be a great and independent thinker. ''(Googel ranks this site 5/10, rather good for a young site.)'' I think, we should leave the "omni-literal digits" therein. The announcement of this proposal is judicious. This is a "remarkable, logical and consistent proposal". There are many proposals stated on Wikipedia, but this one is up-and-coming. Does someone other want to express his opinion to this topic? Also your removal of the octal and hexadecimal fractions was as quick as not justified ! At the Octal talk-page you give to understand, that you do not like binary bases and that you prefer the base 12, because "that would be nice considering how common 1/3 is". ''It's your right to think so!'' But a page treating the "Base 8" and "Base 16 system" ''must'' mention in a few lines its fractions. -- User:Paul Martin 03:30, 13 Dec 2004 (UTC) SHOL doesn't appear to pass the Wikipedia:Google test for notability. The added content made a number of unsupported assertions ("growing worldwide attention", "logical and consistent", "official" this and that) and the evidence for even its existence appears to be only one website (other than Wikipedia). It looks an awful lot like a one-person crusade; Wikipedia Wikipedia:What Wikipedia is not the place to Wikipedia:Wikipedia is not a soapbox. Maybe it could come back if evidence were to be found that someone other than "Michael Florencetime" does anything with it. -- User:JTN 11:30, 2004 Dec 13 (UTC) * The English version of the SHOL site does not appear to me to reveal anything particularly interesting, aside from a few numerological relationships. I am very skeptical of any publication (web or otherwise) that purports to describe some new "universal" measurement that is somehow better than our other measurement systems and should replace them. That the system is hexadecimal in nature doesn't justify extended inclusion in this article; an [http://www.intuitor.com/hex/ existing external link] is a site campaigning to use hexadecimal timekeeping, but it would be inappropriate to talk about the merits and flaws of that system in this article also. We can't include comments on every oddball interpretation of the hexadecimal system here; the article should primarily cover the dominant usage, with perhaps a small section on these alternative interpretations. * On the fraction issue: I believe you mis-read the discussion on Talk:Octal; I did not express any disdain for binary (on the contrary, I quite like it). Another user noted the commonplace nature of 1/3. My reason for removing the fractions is that their inclusion seems rather arbitrary and incomplete (why only consider fractions with a numerator "1"? Why include division without including addition, subtraction, and multiplication?) and, for the most part, unrelated to understanding why octal and hexadecimal are useful. The inclusion seems especially odd considering that neither system is very well-suited to working with them. * You say that we must mention fractions in a few lines for these systems. Why fractions, and not, say, square roots, powers, or primes? I think we should concentrate on the techniques that are actually useful in these systems, particularly the ways they are useful in computer science (and in their relationship to the binary numeral system). I would not be opposed to having discussion of fractions, as long as it's part of a more thorough mathematical treatment. -- User:Wapcaplet 20:37, 14 Dec 2004 (UTC) It is obvious that this article "hexadecimal" is not the place to explain hexadecimal timekeeping and its differences ''(16 H/d or 2×16 H/d?)''. Concerning the SHOL proposal, let's deepen later. On the fraction issue: "Why include division without including addition, subtraction, and multiplication?" Because all these operations are delivering ''integer'' results ''(sometimes perhaps negative integers)''. A basic multiplication table might be interesting, but at present is not top-urgent. The binary system and the hexadecimal system is quite the same. ''(Octal is an obsolete system with several disadvantages, whereon – here – I'll not dwell on.)'' You know as me, that in informatics, values always have "data types": ''signed byte, unsigned word, signed doubleword etc.'' That's the raison why many pocket calculators ''parse integers'' in hexadecimal divisions and neglect the fraction part. Therefore many persons – even some computer scientists think – hexadecimal fractions ''don't exist''. They are at fault! Understanding the binary (or hexadecimal) IEEE floating-point standard helps to comprehend why. For abolishing implicitly this misapprehension, the presence of hexadecimal fractions in this article is essential. Recurring fraction parts are not a problem, quite the contrary, are an advantage. ''(Short and finite fraction parts are certainly still better.)'' But the advantage of an ''identified'' recurring rule is, that your number is a number ''exact'' and not a rounded one. 1/3 showed as 0.3, where is the problem? As we know 1/6 = 0.16 in decimal, we will learn that's also 0x0.2A. It's easy to memorise. 1/3 = 0x0.5 since 5×3 = 0xF. Surely, even in decimal, not many individuals know that 1/7 is 0.142857. But for 1/0x5 and 1/0xA, no problems: Equal 0x0.3 and 0x0.19 respectively. You see, hexadecimal system is as "well-suited" as the decimal one. ''(Excepting the ugly mixed-digits and the need of the prefix "0x".)'' "Why only consider fractions with a numerator "1"?" You are right. Perhaps someone makes another pretty table, not too large, including values like 2/3, 3/4 or 4/5. But this are only additions of the existing fractions. "Square, roots, powers, or primes?". I don't like long useless listings. Hexadecimal calculators exist. Prime numbers are independent of bases! But some constants (''pi'' or ''e'') and often used values like ''square root of two'', perhaps one day, can be mention. "...as long as it's part of a more thorough mathematical treatment." Except the "bitwise logical operations" in limited "data types", there is no difference between hexadecimal and decimal arithmetic. Simply we forgot to swot our ''hexadecimal multiplication tables''. What do you think of? Finally, it's true, I "mis-read". Another user wrote it. I wonder: You, contributing to "programming languages" etc. preferring "Base 12"? ''(Though, it's not a "bad base", but future belongs to hexadecimal. Also ancient weights and measures are often multiplied or divided by 8 or 16.)'' Excuse me for the mistake. -- User:Paul Martin 14:26, 15 Dec 2004 (UTC) "If ''at first'', an idea doesn't seem crazy, then there is no hope for it." Albert Einstein. Hi, it's me the "oddball". ''(I take it with humour.)'' Paul Martin informed me by email with a link up to here. I studied the history... and nice to find you here discussing my SHOL proposal. But stop! – Before we can begin any discussion, it's absolutely necessary, that ''either'' you support your term "numerological" by any quotation you want ''or'But stop! – Before we can begin any discussion, it's absolutely necessary, that ''either'' you support your term "numerological" by any quotation you want ''or'' you will retake it very formally. -- User:Michael Florencetime 16:40, 17 Dec 2004 (UTC) Before I respond, keep in mind that I am basing my reaction on the English-translated portion of your site only, since I do not know French. I used the term "numerological" because of the way in which the hexadecimal system of length is derived. If I understand correctly, these measurements (league, stade, chain, aune, etc.) are wholly derived from Earth's circumference, using various divisions by four or powers of 16. It appears that the reader is expected to perceive some cosmic order in these measurements, when their only real relationship is to the Earth's circumference (a figure that can only really be measured to within several kilometers, and which is rather fuzzy by virtue of the fact that the polar circumference is some 70 km less than the equatorial circumference). That the hexadecimal length system has an internally logical organization of units has little bearing on whether the system could be useful or practical. The metric system may appear equally arbitrary, but at least SI base unit are based on natural phenomena. However, those issues are beside the point; the contention here is whether SHOL should be included at any length in this article. Has this proposal been adopted by any standards organization, or is it being used in a practical way by a significant number of people (say, more than 10)? Is there any publication, aside from your website, that describes the system and its applications? If not, I'm sorry, but I just don't see a place for it here. -- User:Wapcaplet 07:27, 18 Dec 2004 (UTC) Thanks Wapcaplet for replying. I will soon answer you. -- User:Michael Florencetime 11:48, 20 Dec 2004 (UTC)


See other meanings of words starting from letter:

H

HA | HB | HC | HD | HE | HF | HG | HI | HJ | HK | HL | HM | HN | HO | HP | HR | HS | HT | HU | HW | HX | HY | HZ |

Words begining with Hexadecimal:

Hexadecimal
Hexadecimal
Hexadecimal_time


These materials are based on Wikipedia and licensed under the GNU FDL



YouTube.com videos better site than Turbo Tax 2007
encyklopedia online