Share to: share facebook share twitter share wa share telegram print page

Système hexadécimal

0hex = 0dec = 0oct 0 0 0 0
1hex = 1dec = 1oct 0 0 0 1
2hex = 2dec = 2oct 0 0 1 0
3hex = 3dec = 3oct 0 0 1 1
4hex = 4dec = 4oct 0 1 0 0
5hex = 5dec = 5oct 0 1 0 1
6hex = 6dec = 6oct 0 1 1 0
7hex = 7dec = 7oct 0 1 1 1
8hex = 8dec = 10oct 1 0 0 0
9hex = 9dec = 11oct 1 0 0 1
Ahex = 10dec = 12oct 1 0 1 0
Bhex = 11dec = 13oct 1 0 1 1
Chex = 12dec = 14oct 1 1 0 0
Dhex = 13dec = 15oct 1 1 0 1
Ehex = 14dec = 16oct 1 1 1 0
Fhex = 15dec = 17oct 1 1 1 1

Le système hexadécimal est un système de numération positionnel en base 16. Il utilise ainsi 16 symboles, en général les chiffres arabes pour les dix premiers chiffres et les lettres A à F pour les six suivants (en majuscule ou minuscule).

Le système hexadécimal est utilisé notamment en électronique numérique et en informatique car il est particulièrement commode et permet un compromis entre le code binaire des machines et une base de numération pratique à utiliser pour les ingénieurs. En effet, chaque chiffre hexadécimal correspond exactement à quatre chiffres binaires (ou bits), rendant les conversions très simples et fournissant une écriture plus compacte. L'hexadécimal a été utilisé la première fois en 1956 par les ingénieurs de l'ordinateur Bendix G-15.

Écriture des entiers

Le système hexadécimal nécessite l'introduction de 16 symboles représentant les 16 premiers entiers naturels, appelés chiffres hexadécimaux :

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E et F.

Un entier s'écrit comme la concaténation de ces chiffres, et sa lecture s'effectue de droite à gauche. Sa valeur vaut la somme des chiffres affectés de poids correspondant aux puissances successives du nombre 16. Par exemple, 4D516 vaut (5 × 160 + 13 × 161 + 4 × 162)10 = 1 23710.

Utilisation

Le système hexadécimal est largement utilisé en informatique car il permet une conversion sans aucun calcul avec le système binaire, système employé par les ordinateurs, du fait que 16 est une puissance de 2. Comme 16 = 24, à un chiffre en base 16 correspondent exactement quatre chiffres dans la base 2, et il est possible de traduire du binaire vers de l'hexadécimal en groupant les chiffres binaires 4 par 4, et de l'hexadécimal vers le binaire simplement en traduisant chaque chiffre hexadécimal. Un octet (8 chiffres binaires) s'écrit avec 2 chiffres hexadécimaux. Par exemple l'octet qui représente la lettre A en ASCII s'écrit 4116 en système hexadécimal, soit 010000012 en binaire (01002 pour 4 et 00012 pour 1).

Cette facilité de conversion a conduit la notation hexadécimale à être utilisée comme notation compacte et lisible (quatre fois moins de chiffres) pour des données, en particulier non numériques, codées en binaire.

Conversion

La conversion de binaire en hexadécimal se fait en regroupant les chiffres (les bits) quatre par quatre, ou inversement en remplaçant chaque chiffre hexadécimal par 4 chiffres binaires, du fait que 16 = 24. La justification de la conversion d'hexadécimal en binaire est donnée pour des nombres de 0 à 255 qui s'écrivent avec au plus deux chiffres hexadécimaux ou 8 chiffres binaires, mais se généralise sans difficulté autre que de notation. On suppose que les deux chiffres hexadécimaux a et b s'écrivent en base 2 a3a2a1a0 et b3b2b1b0 on a bien :

On justifie de même la conversion réciproque.

Par exemple :

Nombre en binaire 1010110101010110011110111
Groupes de 4 chiffres binaires, en partant de la droite 1 0101 1010 1010 1100 1111 0111
Chiffres hexadécimaux 1 5 A A C F 7
Nombre en hexadécimal 15AACF7
Nombre en décimal (cf. ci-dessous) 22719735

La conversion vers le système décimal est réalisée en effectuant la somme :

n est le nombre de chiffres et la valeur du chiffre hexadécimal à la position i.

Ainsi 15AACF7 se convertit en décimal de la façon suivante :

1×166 + 5×165 + 10×164 + 10×163 + 12×162 + 15×161 + 7×160 = 22 719 735.

La conversion du décimal vers l'hexadécimal se fait par une suite de divisions entières ou bien en utilisant le binaire comme base intermédiaire.

Notation

Des notations sont utilisées, notamment dans les langages informatiques, pour différencier sans ambiguïté les chiffres hexadécimaux des autres :

  • notation suffixée : 123h, (arithmétique)

Opérations arithmétiques

L'addition s'effectue à partir de la technique de l'addition et de la table d'addition suivante :

 +   0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F 
 0   0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F 
 1   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F    10 
 2   2   3   4   5   6   7   8   9   A   B   C   D   E   F    10    11 
 3   3   4   5   6   7   8   9   A   B   C   D   E   F    10    11    12 
 4   4   5   6   7   8   9   A   B   C   D   E   F    10    11    12    13  
 5   5   6   7   8   9   A   B   C   D   E   F    10    11    12    13     14 
 6   6   7   8   9   A   B   C   D   E   F    10    11    12    13     14    15 
 7   7   8   9   A   B   C   D   E   F    10    11    12    13     14    15    16 
 8   8   9   A   B   C   D   E   F    10    11    12    13     14    15    16    17  
 9   9   A   B   C   D   E   F    10    11    12    13     14    15    16    17     18  
 A   A   B   C   D   E   F    10    11    12    13     14    15    16    17     18     19 
 B   B   C   D   E   F    10    11    12    13     14    15    16    17     18     19    1A 
 C   C   D   E   F    10    11    12    13     14    15    16    17     18     19    1A    1B  
 D   D   E   F    10    11    12    13     14    15    16    17     18     19    1A    1B     1C  
 E   E   F    10    11    12    13     14    15    16    17     18     19    1A    1B     1C     1D 
 F   F    10    11    12    13     14    15    16    17     18     19    1A    1B     1C     1D    1E  

La multiplication s'effectue soit par la technique de la multiplication par glissement ou par la technique de la multiplication par jalousies et en utilisant la table de multiplication suivante :

 x   0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F 
 0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0 
 1    0    1    2    3    4    5    6    7    8    9    A    B    C    D    E    F 
 2    0    2    4    6    8    A    C    E    10    12    14    16    18    1A    1C    1E 
 3    0    3    6    9    C    F    12    15    18    1B    1E    21    24    27    2A    2D 
 4    0    4    8    C    10    14    18    1C    20    24    28    2C    30    34    38    3C 
 5    0    5    A    F    14    19    1E    23    28    2D    32    37    3C    41    46    4B 
 6    0    6    C    12    18    1E    24    2A    30    36    3C    42    48    4E    54    5A 
 7    0    7    E    15    1C    23    2A    31    38    3F    46    4D    54    5B    62    69 
 8    0    8    10    18    20    28    30    38    40    48    50    58    60    68    70    78 
 9    0    9    12    1B    24    2D    36    3F    48    51    5A    63    6C    75    7E    87 
 A    0    A    14    1E    28    32    3C    46    50    5A    64    6E    78    82    8C    96 
 B    0    B    16    21    2C    37    42    4D    58    63    6E    79    84    8F    9A    A5 
 C    0    C    18    24    30    3C    48    54    60    6C    78    84    90    9C    A8    B4 
 D    0    D    1A    27    34    41    4E    5B    68    75    82    8F    9C    A9    B6    C3 
 E    0    E    1C    2A    38    46    54    62    70    7E    8C    9A    A8    B6    C4    D2 
 F    0    F    1E    2D    3C    4B    5A    69    78    87    96    A5    B4    C3    D2    E1 

Système bibi-binaire

Le chanteur et humoriste Boby Lapointe avait inventé en 1968 un système hexadécimal, appelé système bibi-binaire à la fois drôle et cohérent.

Codage des couleurs

Le système hexadécimal est un des modes de codage informatique des couleurs des écrans d'ordinateurs.

Notes et références


Voir aussi

Read other articles:

Voce principale: Società Sportiva Calcio Napoli. In questa voce sono riportate informazione sui calciatori della Società Sportiva Calcio Napoli, società calcistica italiana con sede a Napoli. Indice 1 Capitani 2 Maglie ritirate 3 Record 3.1 Classifica assoluta presenze e reti in partite ufficiali 3.2 Capocannonieri per singola stagione 3.2.1 In competizioni nazionali 3.3 Record anagrafici 3.4 Altri record individuali 4 Calciatori premiati 4.1 A livello nazionale 4.1.1 In altri paesi 4.2 A liv…

Святий Адріан — термін, який має кілька значень. Ця сторінка значень містить посилання на статті про кожне з них.Якщо ви потрапили сюди за внутрішнім посиланням, будь ласка, поверніться та виправте його так, щоб воно вказувало безпосередньо на потрібну статтю.@ пошук посил

Опис Фоторакурс комплексу Ярденіт в Ізраїлі Джерело власна фотографія Час створення 2011 Автор зображення Веренко Я.Г. Ліцензія Це зображення було добровільно передане в суспільне надбання його автором — Веренко Я.Г.. Веренко Я.Г. віддає усі права на використання цієї ро

селище Бесіда рос. Беседа Країна  Росія Суб'єкт Російської Федерації Ленінградська область Муніципальний район Волосовський район Поселення Бесідське сільське поселення Код ЗКАТУ: 41206806001 [1] Код ЗКТМО: 41606406101 Основні дані Населення 907 осіб (2007 рік) Поштові індекси 18841…

Tree near Grantham, Lincolnshire, England Isaac Newton's apple treeThe tree in Woolsthorpe Manor2946Woolsthorpe-by-Colsterworth, near Grantham, LincolnshireSpeciesFlower of Kent, Malus domesticaCoordinates52°48′32.7″N 00°37′51″W / 52.809083°N 0.63083°W / 52.809083; -0.63083Date felled1816 (regrown)CustodianNational TrustWebsitewww.nationaltrust.org.uk/visit/nottinghamshire-lincolnshire/woolsthorpe-manor Isaac Newton's apple tree at Woolsthorpe Manor[1]…

American oil company Pan American Petroleum and Transport CompanyIndustryOil exploration and productionFounded1916FounderEdward L. DohenyDefunct1954Area servedUnited States, Mexico, ColombiaProductsPetroleum The Pan American Petroleum and Transport Company (PAT) was an oil company founded in 1916 by the American oil tycoon Edward L. Doheny after he had made a huge oil strike in Mexico. Pan American profited from fuel demand during World War I, and from the subsequent growth in use of automobiles…

1937 film Motor MadnessDirected byD. Ross LedermanWritten byFred Niblo Jr.Grace NevilleProduced byIrving Briskin Harry L. DeckerStarringJoseph Allen Rosalind Keith J.M. KerriganCinematographyAllen G. SieglerEdited byByron RobinsonProductioncompanyColumbia PicturesDistributed byColumbia PicturesRelease date April 5, 1937 (1937-04-05) Running time61 minutesCountryUnited StatesLanguageEnglish Motor Madness is a 1937 American drama film directed by D. Ross Lederman and starring Joseph…

Georges Joseph Christian Simenon (IPA: [ʒɔʀʒ sim'nɔ̃]), adalah seorang penulis Belgia berbahasa Prancis yang dilahirkan di Liège (Belgia), secara resmi pada tanggal 12 Februari, 1903[1] dan wafat pada tanggal 4 September, 1989 di Lausanne (Swiss) yang terkenal akan kisah Maigret. Referensi ^ Sa vie commence par un mystère, il serait né le vendredi 13 février, mais déclaré le 12 par superstition. Voir (Bernard Alavoine, biographie en ligne Diarsipkan 2008-03-29 di Wayback Mach…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (مايو 2023) براق 85 بلد المنشأ  فلسطين المصنع وحدة التصنيع في حركة سرايا القدس المدى العملياتي 85 كيلومترًا المستخدمون سرايا القدس تعديل مصدري - تعديل   براق 85 هو صاروخ ف…

Halaman ini berisi artikel tentang Universitas di Inggris. Untuk Universitas Newcastle Australia, lihat Universitas Newcastle (Australia). Universitas NewcastleLambang Universitas NewcastleJenisPerguruan tinggi negeriDidirikan1834 – Sekolah Kedokteran dan Ilmu Bedah[1] 1871 – Amstrong College yang mengajarkan Ilmu Fisika [1] ,br /> 1963 – berdiri sendiri dari Universitas DurhamRektorSir Liam DonaldsonStaf akademik2,430 [2]Staf administrasi1,049 [2]Jumlah …

Village in County Tipperary, Ireland Village in Munster, IrelandBallyporeen Béal Átha PóirinVillageThe R665 through Ballyporeen, once part of the main Dublin - Cork coach road.BallyporeenLocation in IrelandCoordinates: 52°16′12″N 8°06′00″W / 52.26994°N 8.10001°W / 52.26994; -8.10001CountryIrelandProvinceMunsterCountyCounty TipperaryDáil ÉireannTipperaryElevation82 m (269 ft)Population (2016)[1]318Dialing code0 52, +000 353 (0)52Iris…

British newspaper, founded 1821 For other uses, see The Sunday Times (disambiguation). The Sunday TimesThe Sunday Times cover (13 July 2014)TypeSunday newspaperFormatBroadsheetOwner(s)News UKFounder(s)Henry WhiteEditorBen Taylor[1]Founded18 February 1821; 202 years ago (1821-02-18) (as The New Observer)Political alignmentConservative[2][3]HeadquartersThe News Building, 1 London Bridge Place, London, SE1 9GFCirculation647,622 (as of March 2020)[4&…

Season of television series ViolettaSeason 1Country of originArgentinaNo. of episodes80ReleaseOriginal networkDisney ChannelOriginal releaseMay 14 (2012-05-14) –October 26, 2012 (2012-10-26)List of episodes The first season of the Argentine telenovela Violetta started airing in Argentina on May 14, 2012 and ended on October 26, 2012. There were 80 episodes divided into two parts, each with 40 episodes. The first half of the season was titled Su destino es hoy (Her destiny is tod…

Vidhan Sabha constituencyMunger Assembly constituencyConstituency No. 165 for the Bihar Legislative AssemblyConstituency detailsCountryIndiaRegionEast IndiaStateBiharDistrictMungerLS constituency28. MungerMember of Legislative Assembly17th Bihar Legislative AssemblyIncumbent Pranav Kumar Yadav PartyBharatiya Janata PartyElected year2020 Assembly constituencyMungerAssembly constituencyMungerLocation in BiharCoordinates: 25°23′34″N 86°30′02″E / 25.39278°N 86.50056°E…

КоммунаМьольяитал. Mioglia Герб 44°30′ с. ш. 8°25′ в. д.HGЯO Страна  Италия Регион Лигурия Провинция Савона История и география Площадь 20 км² Высота центра 349 м Часовой пояс UTC+1:00, летом UTC+2:00 Население Население 545 человек (2008) Плотность 27 чел./км² Цифровые иденти…

Province in TurkeyBayburt Province Bayburt iliProvinceLocation of the province within TurkeyCountryTurkeySeatBayburtGovernment • ValiMustafa EldivanArea3,746 km2 (1,446 sq mi)Population (2022)[1]84,241 • Density22/km2 (58/sq mi)Time zoneTRT (UTC+3)Area code0458Websitewww.bayburt.gov.tr Bayburt Province (Turkish: Bayburt ili) is a province of Turkey. Located in the Northeast Anatolia region of the country, the capital city is Bayburt. Its a…

American mathematician For other people named John Conway, see John Conway (disambiguation). John B. ConwayBorn (1939-09-22) September 22, 1939 (age 84)New Orleans, Louisiana, United StatesNationalityAmericanAlma mater Loyola University (BS) Louisiana State University (PhD) Websitehttp://home.gwu.edu/~conway/ Academic careerInstitutionsThe George Washington UniversityThesiswww.jstor.org/stable/1994310 (1966)Doctoral advisorHeron S. CollinsDoctoral studentsJim Agler (1980)[…

2016 film by Mandie Fletcher Absolutely Fabulous: The MovieTheatrical release posterDirected byMandie FletcherWritten byJennifer SaundersBased onAbsolutely Fabulousby Jennifer Saunders and Dawn FrenchProduced by Damian Jones Jon Plowman Starring Jennifer Saunders Joanna Lumley Julia Sawalha Jane Horrocks June Whitfield Chris Colfer Kate Moss Lulu Emma Bunton Robert Webb Barry Humphries CinematographyChris GoodgerEdited by Anthony Boys Gavin Buckley Music byJake MonacoProductioncompanies Fox Sear…

Smartphone by Samsung Not to be confused with Samsung Galaxy Young. Samsung Galaxy Y (GT-S5360)Samsung Galaxy Y GT-S5360BrandSamsung GalaxyManufacturerSamsung ElectronicsCompatible networksGSM 850/900/1800/3G1900 HSDPA 7.2 Mbps 900/2100First releasedOctober 2011SuccessorSamsung Galaxy YoungTypeSmartphoneForm factorCandybarDimensions104 mm (4.1 in) H58 mm (2.3 in) W11.5 mm (0.45 in) DMass97.5 g (3.44 oz)Operating systemAndroid 2.3.6 Gingerbre…

Kings DomainGovernment House in the south-east corner of Kings DomainTypePublic ParkLocationMelbourne, AustraliaCoordinates37°49′33″S 144°58′27″E / 37.82583°S 144.97417°E / -37.82583; 144.97417Area36 hectaresOpened1854StatusOpenPathsSealedTerrainUndulating hills, RiverbankWaterYarra RiverVegetationAustralian Native, Lawns, Non-native traditional gardensConnecting transportTram, Bus, CarLandmarksYarra River, Sidney Myer Music Bowl, Shrine of Remembrance, Govern…

Kembali kehalaman sebelumnya