In computer programming, an ordinal data type is a data type with the property that its values can be counted. That is, the values can be put in a one-to-one correspondence with the positive integers. For example, characters are ordinal because we can call 'A' the first character, 'B' the second, etc. The term is often used in programming for variables that can take one of a finite (often small) number of values. While the values are often implemented as integers (or similar types such as bytes) they are assigned literal names and the programming language (and the compiler for that language) can enforce that variables only be assigned those literals.
Attributes | Values |
---|
rdf:type
| |
rdfs:label
| - Ordinal data type (en)
- Typ porządkowy (pl)
|
rdfs:comment
| - In computer programming, an ordinal data type is a data type with the property that its values can be counted. That is, the values can be put in a one-to-one correspondence with the positive integers. For example, characters are ordinal because we can call 'A' the first character, 'B' the second, etc. The term is often used in programming for variables that can take one of a finite (often small) number of values. While the values are often implemented as integers (or similar types such as bytes) they are assigned literal names and the programming language (and the compiler for that language) can enforce that variables only be assigned those literals. (en)
- Typ porządkowy – typ danych w określonym języku programowania, którego zbiór wartości stanowi ograniczony i uporządkowany ciąg wartości prostych. Dla każdej wartości należącej do pewnego typu porządkowego określona jest Zdefiniowanie pojęcia typu porządkowego w pewnych językach programowania zostało dokonane w celu określenia tych typów, które mogą być zastosowane w pewnych konkretnych kontekstach kodu źródłowego. Są to: W języku Pascal, w którym termin typu porządkowego został zdefiniowany wprost, typami porządkowymi są: (pl)
|
differentFrom
| |
dcterms:subject
| |
Wikipage page ID
| |
Wikipage revision ID
| |
Link from a Wikipage to another Wikipage
| |
sameAs
| |
dbp:wikiPageUsesTemplate
| |
has abstract
| - In computer programming, an ordinal data type is a data type with the property that its values can be counted. That is, the values can be put in a one-to-one correspondence with the positive integers. For example, characters are ordinal because we can call 'A' the first character, 'B' the second, etc. The term is often used in programming for variables that can take one of a finite (often small) number of values. While the values are often implemented as integers (or similar types such as bytes) they are assigned literal names and the programming language (and the compiler for that language) can enforce that variables only be assigned those literals. For instance in Pascal, one can define: var x: 1..10; y: 'a'..'z';
* v
* t
* e (en)
- Typ porządkowy – typ danych w określonym języku programowania, którego zbiór wartości stanowi ograniczony i uporządkowany ciąg wartości prostych. Dla każdej wartości należącej do pewnego typu porządkowego określona jest
* wartość następna – następnik (z wyjątkiem wartości ostatniej w uporządkowanym ciągu możliwych wartości danego typu porządkowego), np. funkcja Succ(x) w Turbo Pascalu
* wartość poprzednia – poprzednik (z wyjątkiem wartości pierwszej w uporządkowanym ciągu możliwych wartości danego typu porządkowego), np. funkcja Pred(x) w Turbo Pascalu
* indeks, określający miejsce w uporządkowanym ciągu wartości, np. funkcja Ord(x) w Turbo Pascalu. Zdefiniowanie pojęcia typu porządkowego w pewnych językach programowania zostało dokonane w celu określenia tych typów, które mogą być zastosowane w pewnych konkretnych kontekstach kodu źródłowego. Są to:
* zmienne sterujące
* operacje następnika i poprzednika (np. w Pascalu: succ i pred)
* operacje inkrementacji i dekrementacji (np. w C: ++, --)
* indeksowanie tablic, itp. W języku Pascal, w którym termin typu porządkowego został zdefiniowany wprost, typami porządkowymi są:
* typ całkowity (integer, word, longint, shortint, byte)
* typ wyliczeniowy
* typ logiczny (boolean)
* typ znakowy (char)
* typ okrojony (w1..w2) Typ porządkowy posiada taki zbiór wartości których fizyczna reprezentacja w komputerze może być łatwo i bez jakichkolwiek przeliczeń rzutowana na typ całkowity. (pl)
|
gold:hypernym
| |
prov:wasDerivedFrom
| |
page length (characters) of wiki page
| |
foaf:isPrimaryTopicOf
| |
is Link from a Wikipage to another Wikipage
of | |
is Wikipage redirect
of | |
is foaf:primaryTopic
of | |