Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

Constant

English · Français · Suomi · Русский · 中文(中国)

A constant is a variable that does not change, it has a final value.

Constants are defined in the const section of a Free Pascal program. When a symbol is defined as constant, the Free Pascal compiler can often do some optimizations to make the output code faster or smaller.

Some special Free Pascal constants are:

Logical truth values

data type limits

The mathematical value π is realized as a function in system.pi.

See also


From the Free Pascal wiki, page "Constant", as it stood on 2023-02-23 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.

Revision 1, last changed by WikiArchive .