Sign in Join
Wiki copytemporary

Percent sign/fi: what changed

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

Title: Percent sign/fi

OldNewLine
1+<div style="float:right; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">
2+
3+%
4+
5+</div>
6+
7+[[ASCII/fi|ASCII:ssa]] ja Unicodessa merkkikoodiarvo joka on desimaalisena `37` (tai [[Hexadecimal/fi|heksadesimaalisena]] `25`) määritellään `%` .
8+
9+Symbolia `%` (lausutaan "prosenttimerkki") käytetään [[Pascal/fi|Pascalissa]]:
10+
11+- ilmaisemaan [[Binary numeral system/fi|binäärisen luvun /-numeron]].
12+
13+Prosenttiluku näkyy myös Lazaruksen [[IDE directives|IDE -direktiiveissä]], jotka ovat muotoa `{%directive}`
14+
15+## Esimerkki
16+
17+``` pascal
18+
19+program simple_binary_digit;
20+
21+var b:byte;
22+begin
23+ b := %1010011;
24+ writeln (b);
25+ writeln (binStr(b,8));
26+ writeln ;
27+ writeln ('Paina [Enter] lopettaaksesi');
28+ readln;
29+end.
30+```
31+
32+Ulostulona saadaan seuraavaa:
33+
34+`83`\
35+`01010011`\
36+` `\
37+`Paina [Enter] lopettaaksesi`
38+
39+## Katso myös
40+
41+- [[Function/fi|funktio]][[doc:rtl/system/binstr.html|binStr]] - muuntaa [[Integer|kokonaisluvun (integer)]] [[String/fi|string merkkijonon]] binääriesitykseksi.
42+
43+---
44+*From the Free Pascal wiki, page "Percent sign/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, 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).*

Back to history