Sign in Join
Wiki copytemporary

Percent sign/fi: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11%
22
33[[ASCII/fi|ASCII:ssa]] ja Unicodessa merkkikoodiarvo joka on desimaalisena `37` (tai [[Hexadecimal/fi|heksadesimaalisena]] `25`) määritellään `%` .
44
55Symbolia `%` (lausutaan "prosenttimerkki") käytetään [[Pascal/fi|Pascalissa]]:
66
77- ilmaisemaan [[Binary numeral system/fi|binäärisen luvun /-numeron]].
88
99Prosenttiluku näkyy myös Lazaruksen [[IDE directives|IDE -direktiiveissä]], jotka ovat muotoa `{%directive}`
1010
1111## Esimerkki
1212
1313``` pascal
1414
1515program simple_binary_digit;
1616
1717var b:byte;
1818begin
1919 b := %1010011;
2020 writeln (b);
2121 writeln (binStr(b,8));
2222 writeln ;
2323 writeln ('Paina [Enter] lopettaaksesi');
2424 readln;
2525end.
2626```
2727
2828Ulostulona saadaan seuraavaa:
2929
30-`83`\
31-`01010011`\
32-` `\
33-`Paina [Enter] lopettaaksesi`
30+```text
31+83
32+01010011
33+
34+Paina [Enter] lopettaaksesi
35+```
3436
3537## Katso myös
3638
3739- [[Function/fi|funktio]][[doc:rtl/system/binstr.html|binStr]] - muuntaa [[Integer|kokonaisluvun (integer)]] [[String/fi|string merkkijonon]] binääriesitykseksi.
3840
3941---
4042*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