08.04.2014 Views

Algorithmique et Langage - Pages de Michel Deloizy - Free

Algorithmique et Langage - Pages de Michel Deloizy - Free

Algorithmique et Langage - Pages de Michel Deloizy - Free

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Notation<br />

Forme générale :<br />

±dd.ddE±xx ⇔ ±dd.dd 10 ±xx<br />

• ±nnn.nnn<br />

! 2.0, -1.432, +4.5, 0.0<br />

• ±.nnn ou ± nnn.<br />

! 1. , -.2, 0.<br />

• ± nnE ±nn ou ± nne ±nn<br />

! 1E3, 5.22e-23, +3.2E-2<br />

M. <strong>Deloizy</strong> Informatique - Généralités 45<br />

Le type caractère<br />

• Caractères codés pour représentation en<br />

machine<br />

• 7 bits suffisent (128 caractères)<br />

• Exemple <strong>de</strong> co<strong>de</strong> : ASCII<br />

– American Standard Co<strong>de</strong> for Information<br />

Interchange<br />

– Défini par ANSI (American National Standard<br />

Institute)<br />

M. <strong>Deloizy</strong> Informatique - Généralités 46<br />

Codage ASCII<br />

• Contient :<br />

– L<strong>et</strong>tres minuscules <strong>et</strong> majuscules (ordre<br />

alphabétique) : 2x26 caractères<br />

– Chiffres (ordre croissant <strong>de</strong> 0 à 9)<br />

– Ponctuations, caractères typographiques, …<br />

– Caractères <strong>de</strong> contrôle (co<strong>de</strong>s 0 à 31)<br />

• Exemples :<br />

– 'A' = 65, 'B' = 66, 'Z' = 90, 'a' = 97, '0' = 48<br />

– CR = 13, LF = 10, TAB = 9, FF = 12, BEL = 7<br />

Autres codages<br />

• EBCDIC (IBM)<br />

• ANSI (jeux <strong>de</strong> caractères internationaux)<br />

• ASCII étendu<br />

Souvent sur 1 oct<strong>et</strong><br />

Rem. : le langage informatique prend en charge le<br />

codage (pas nécessaire <strong>de</strong> le connaître)<br />

M. <strong>Deloizy</strong> Informatique - Généralités 47<br />

M. <strong>Deloizy</strong> Informatique - Généralités 48<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!