Sign in Join
Wiki copytemporary

Percent sign/fi: what changed

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

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-
31%
4-
5-</div>
62
73[[ASCII/fi|ASCII:ssa]] ja Unicodessa merkkikoodiarvo joka on desimaalisena `37` (tai [[Hexadecimal/fi|heksadesimaalisena]] `25`) määritellään `%` .
84
95Symbolia `%` (lausutaan "prosenttimerkki") käytetään [[Pascal/fi|Pascalissa]]:
106
117- ilmaisemaan [[Binary numeral system/fi|binäärisen luvun /-numeron]].
128
139Prosenttiluku näkyy myös Lazaruksen [[IDE directives|IDE -direktiiveissä]], jotka ovat muotoa `{%directive}`
1410
1511## Esimerkki
1612
1713``` pascal
1814
1915program simple_binary_digit;
2016
2117var b:byte;
2218begin
2319 b := %1010011;
2420 writeln (b);
2521 writeln (binStr(b,8));
2622 writeln ;
2723 writeln ('Paina [Enter] lopettaaksesi');
2824 readln;
2925end.
3026```
3127
3228Ulostulona saadaan seuraavaa:
3329
3430`83`\
3531`01010011`\
3632` `\
3733`Paina [Enter] lopettaaksesi`
3834
3935## Katso myös
4036
4137- [[Function/fi|funktio]][[doc:rtl/system/binstr.html|binStr]] - muuntaa [[Integer|kokonaisluvun (integer)]] [[String/fi|string merkkijonon]] binääriesitykseksi.
4238
4339---
4440*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