Dollar sign/fi: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 1 | + | $ | |
| 6 | 2 | ||
| 7 | - | ||
| 3 | + | [[ASCII]]:ssa merkkikoodi desimaalinen merkkikoodi `36` (tai [[Hexadecimal/fi|heksadesimaalisena]] `24`) on määritelty `$` (dollarin merkiksi). | |
| 8 | 4 | ||
| 9 | 5 | ## Pascal | |
| 10 | 6 | ||
| 11 | - | ||
| 7 | + | Symbolia `$`, lausutaan “dollarin merkki”, käytetään [[Pascal]] ilmoittamaan että luku on [[Hexadecimal|heksadesimaali]] esityksessä. | |
| 12 | 8 | ||
| 13 | - | ||
| 9 | + | ``` | |
| 14 | 10 | program dollarSignDemo(input, output, stderr); | |
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 11 | + | ||
| 12 | + | var | |
| 13 | + | i: longint; | |
| 14 | + | ||
| 15 | + | begin | |
| 16 | + | // '$' sekä '0x' tunnistetaan ReadLn: llä | |
| 17 | + | // heksadesimaalilukuna | |
| 18 | + | readStr('$24', i); | |
| 19 | + | writeLn(i); // tulostaa 36 | |
| 20 | + | writeLn(-$24); // tulostaa -36 | |
| 21 | + | end. | |
| 26 | 22 | ``` | |
| 27 | 23 | ||
| 28 | - | ||
| 24 | + | Valinnaisena esitetty luvun etumerkki on kirjoitettu $-mekin eteen. | |
| 29 | 25 | ||
| 30 | 26 | ## Muut esiintymiset | |
| 31 | 27 | ||
| 32 | - | ||
| 28 | + | [[FPC]] ja [[Delphi]] kääntäjissä dollarin merkkiä käytetään myös kääntäjälle annettavissa ohjeissa seuraavan muotoisena `{$directive}`. | |
| 33 | 29 | ||
| 30 | + | ||
| 31 | + | ||
| 32 | + | navigation bar: topic: Pascal symbols single characters | [[Plus/fi|`+` (plus)]] • [[Minus/fi|`-` (minus)]] • [[*/fi|`*` (asterisk)]] • [[Slash/fi|`/` (slash)]] | |
| 33 | + | [[Equal/fi|`=` (equal)]] • [[Greater than/fi|`>` (greater than)]] • [[Less than/fi|`<` (less than)]] | |
| 34 | + | [[period/fi|`.` (period)]] • [[Colon/fi|`:` (colon)]] • [[;/fi|`;` (semi colon)]] | |
| 35 | + | [[^/fi|`^` (hat)]] • [[@/fi|`@` (at)]] | |
| 36 | + | `$` (dollar sign) • [[&/fi|`&` (ampersand)]] • [`#` (hash)](</index.php?title=Hash/fi&action=edit&redlink=1> "Hash/fi \(page does not exist\)") | |
| 37 | + | [['/fi|`'` (single quote)]] | |
| 38 | + | ---|--- | |
| 39 | + | character pairs | [[Not equal/fi|`<>` (not equal)]] • [`<=` (less than or equal)](</index.php?title=Less_than_or_equal/fi&action=edit&redlink=1> "Less than or equal/fi \(page does not exist\)") • [[Becomes/fi|`:=` (becomes)]] • [`>=` (greater than or equal)](</index.php?title=Greater_than_or_equal/fi&action=edit&redlink=1> "Greater than or equal/fi \(page does not exist\)") • [[symmetric difference|`><` (symmetric difference)]] • [[Slash|`//` (double slash)]] | |
| 40 | + | ||
| 41 | + | ||
| 42 | + | **** | |
| 43 | + | ||
| 34 | 44 | --- | |
| 35 | - | ||
| 45 | + | *From the Free Pascal wiki, page "Dollar sign/fi", as the Internet Archive kept it on 2024-08-11. 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).* |
