Hexadecimal/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Hexadecimal/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Heksadesimaalilukujärjestelmä (hex, heksaluku, heksa) on numerojärjestelmä jonka kantaluku on 16. Normaalin kymmenjärjestelmän (eli desimaalilukujen) numerot 0–15 esitetään Heksadesimaalilukujärjestelmässä symboleilla 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E ja F. Heksadesimaalilukujärjestelmän luvut ovat helppo muuntaa tietokoneen sisäisesti käyttämästä [[Binary numeral system/fi|binäärijärjestelmästä]] ja ne ovat kätevämpiä käyttää kuin binäärijärjestelmän numerot. Yksi heksadesimaalinumero korvaa neljä binäärinumeroa eli on 4-bittiä pitkä. | |
| 2 | + | ||
| 3 | + | [[Pascal]]:ssa heksadesimaaliluvut merkitään käyttämällä etuliitettä [[Dollar sign|$]] | |
| 4 | + | ||
| 5 | + | ||
| 6 | + | ||
| 7 | + | # Muunnostaulukko | |
| 8 | + | ||
| 9 | + | Heksadesimaali | Desimaali | Binääri | |
| 10 | + | ---|---|--- | |
| 11 | + | $0000 | 0 | [[Percent sign|%]]0000000000000000 | |
| 12 | + | $0001 | 1 | %0000000000000001 | |
| 13 | + | $0002 | 2 | %0000000000000010 | |
| 14 | + | $0003 | 3 | %0000000000000011 | |
| 15 | + | $0004 | 4 | %0000000000000100 | |
| 16 | + | $0005 | 5 | %0000000000000101 | |
| 17 | + | $0006 | 6 | %0000000000000110 | |
| 18 | + | $0007 | 7 | %0000000000000111 | |
| 19 | + | $0008 | 8 | %0000000000001000 | |
| 20 | + | $0009 | 9 | %0000000000001001 | |
| 21 | + | $000a | 10 | %0000000000001010 | |
| 22 | + | $000b | 11 | %0000000000001011 | |
| 23 | + | $000c | 12 | %0000000000001100 | |
| 24 | + | $000d | 13 | %0000000000001101 | |
| 25 | + | $000e | 14 | %0000000000001110 | |
| 26 | + | $000f | 15 | %0000000000001111 | |
| 27 | + | $0010 | 16 | %0000000000010000 | |
| 28 | + | $0011 | 17 | %0000000000010001 | |
| 29 | + | $0012 | 18 | %0000000000010010 | |
| 30 | + | $0013 | 19 | %0000000000010011 | |
| 31 | + | $0014 | 20 | %0000000000010100 | |
| 32 | + | ... | ... | ... | |
| 33 | + | $009f | 159 | %0000000010011111 | |
| 34 | + | $00a0 | 160 | %0000000010100000 | |
| 35 | + | ... | ... | ... | |
| 36 | + | $00ff | 255 | %0000000011111111 | |
| 37 | + | $0100 | 256 | %0000000100000000 | |
| 38 | + | $0101 | 257 | %0000000100000001 | |
| 39 | + | ||
| 40 | + | ||
| 41 | + | ||
| 42 | + | # Katso myös | |
| 43 | + | ||
| 44 | + | [[Function|Funktiot]]: | |
| 45 | + | ||
| 46 | + | * [Hex2Dec](<http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/hex2dec.html> "doc:rtl/strutils/hex2dec.html") Muuntaa heksadesimaalisena esitetyn [[String|merkkijonon]] desimaaliluvuksi. | |
| 47 | + | * [HexToBin](<http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/hextobin.html> "doc:rtl/strutils/hextobin.html") Muuntaa heksadesimaalisena esitetyn merkkijonon binary buffer:n | |
| 48 | + | * [IntToHex](<http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/inttohex.html> "doc:rtl/sysutils/inttohex.html") Muuntaa [[Integer/fi|kokonaisluvun]] heksadesimaalisena esitetyksi merkkijonoksi. | |
| 49 | + | ||
| 50 | + | [[Procedure|Aliohjelmat]] | |
| 51 | + | ||
| 52 | + | * [BinToHex](<http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/bintohex.html> "doc:rtl/strutils/bintohex.html") Muuntaa binary buffer:n heksadesimaalisena esitetyksi merkkijonoksi. | |
| 53 | + | ||
| 54 | + | --- | |
| 55 | + | *From the Free Pascal wiki, page "Hexadecimal/fi", as the Internet Archive kept it on 2023-03-27, last changed on 2018-01-10. 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).* |
