Sign in Join
Wiki copytemporary

Hexadecimal/pt: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Hexadecimal/pt

OldNewLine
1+Hexadecimal (hex) é um sistema numérico de base 16. Em hexadecimal os números decimais 0–15 são representados pelos símbolos 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E e F. Números hexadecimais são fáceis de converter para o código binário interno do computador e são mais compactos do que os [[Binary numeral system/pt|números binários]]. Um dígito hexadecimal ocupa o lugar de 4 bits binários (4-bits).
2+
3+Em [[Pascal/pt|Pascal]], hexadecimais são indicados por meio do uso do prefixo [[Dollar sign/pt|$]].
4+
5+# Tabela de Conversão
6+
7+| Hexadecimal | Decimal | Binário |
8+|----|----|----|
9+|   \$0000   |   0   |   [[Percent sign/pt|%]]0000000000000000   |
10+|   \$0001   |   1   |   %0000000000000001   |
11+|   \$0002   |   2   |   %0000000000000010   |
12+|   \$0003   |   3   |   %0000000000000011   |
13+|   \$0004   |   4   |   %0000000000000100   |
14+|   \$0005   |   5   |   %0000000000000101   |
15+|   \$0006   |   6   |   %0000000000000110   |
16+|   \$0007   |   7   |   %0000000000000111   |
17+|   \$0008   |   8   |   %0000000000001000   |
18+|   \$0009   |   9   |   %0000000000001001   |
19+|   \$000a   |   10   |   %0000000000001010   |
20+|   \$000b   |   11   |   %0000000000001011   |
21+|   \$000c   |   12   |   %0000000000001100   |
22+|   \$000d   |   13   |   %0000000000001101   |
23+|   \$000e   |   14   |   %0000000000001110   |
24+|   \$000f   |   15   |   %0000000000001111   |
25+|   \$0010   |   16   |   %0000000000010000   |
26+|   \$0011   |   17   |   %0000000000010001   |
27+|   \$0012   |   18   |   %0000000000010010   |
28+|   \$0013   |   19   |   %0000000000010011   |
29+|   \$0014   |   20   |   %0000000000010100   |
30+|   ...   |   ...   |   ...   |
31+|   \$009f   |   159   |   %0000000010011111   |
32+|   \$00a0   |   160   |   %0000000010100000   |
33+|   ...   |   ...   |   ...   |
34+|   \$00ff   |   255   |   %0000000011111111   |
35+|   \$0100   |   256   |   %0000000100000000   |
36+|   \$0101   |   257   |   %0000000100000001   |
37+| | | |
38+
39+# Ver também
40+
41+[[Function/pt|Funções]]:
42+
43+- [[doc:rtl/strutils/hex2dec.html|Hex2Dec]] Converte uma [[String/pt|string]] hexadecimal para um valor decimal.
44+- [[doc:rtl/strutils/hextobin.html|HexToBin]] Converte um string hexadecimal para um buffer de binário.
45+- [[doc:rtl/sysutils/inttohex.html|IntToHex]] Converte um valor [[Integer/pt|inteiro (Integer)]] para uma string hexadecimal.
46+
47+[[Procedure/pt|Procedures]]
48+
49+- [[doc:rtl/strutils/bintohex.html|BinToHex]] Converte um buffer de binário para uma string hexadecimal.
50+
51+---
52+*From the Free Pascal wiki, page "Hexadecimal/pt", as it stood on 2019-12-09 after a change by Leonardocoelho, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
53+Category: Glossary

Back to history