Sign in Join
Wiki copytemporary

Dec/fi: what changed

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

Title: Dec/fi

OldNewLine
1+Dec (decrement) [[Procedure/fi|aliohjelma]] Pascal ohjelmoinnissa mahdollistaa helpon yhdellä (tai jollakin muulla arvolla) [[Variable|muuttujan]] vähentämisen. Esimerkiksi, käyttämällä Dec (decrement) aliohjelmaa, voidaan vähentää yhdellä (1) muuttujaa a:ta näin:
2+
3+``` pascal
4+ dec( a );
5+```
6+
7+Jos halutaan vähentää kahdella (tai jollakin muulla arvolla):
8+
9+``` pascal
10+ dec( a, 2 );
11+```
12+
13+Dec aliohjelma sisältyy [[System unit/fi|System Unittiin]].
14+
15+## Katso myös
16+
17+- Linkki RTL dokumenttiin: [[doc:rtl/system/dec.html|dec]]
18+- [[Inc/fi|Inc]] - Lisää muuttujan arvoa.
19+- Linkki RTL dokumenttiin: [[doc:/rtl/system/pred.html|pred]] - palauttaa (ordinaali tyypin) edellisen arvon.
20+- [[For]] luuppi_muuttuja := lähtö_piste [[Downto]] loppu_piste [[Do]].
21+
22+---
23+*From the Free Pascal wiki, page "Dec/fi", as it stood on 2022-08-09 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