Dec/fi
Deutsch · Français · Suomi · Русский
Dec (decrement) aliohjelma Pascal ohjelmoinnissa mahdollistaa helpon yhdellä (tai jollakin muulla arvolla) muuttujan vähentämisen. Esimerkiksi, käyttämällä Dec (decrement) aliohjelmaa, voidaan vähentää yhdellä (1) muuttujaa a:ta näin:
dec( a );Jos halutaan vähentää kahdella (tai jollakin muulla arvolla):
dec( a, 2 );Dec aliohjelma sisältyy System Unittiin.
Katso myös
- Linkki RTL dokumenttiin: dec
- Inc - Lisää muuttujan arvoa.
- Linkki RTL dokumenttiin: pred - palauttaa (ordinaali tyypin) edellisen arvon.
- For luuppi_muuttuja := lähtö_piste Downto loppu_piste Do.
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.