Variable size/Set: Difference between revisions

Content added Content deleted
(→‎{{header|Pascal}}: add examples)
Line 177: Line 177:
Alternately, in the gp interpreter,
Alternately, in the gp interpreter,
<lang parigp>\p 1000</lang>
<lang parigp>\p 1000</lang>

=={{header|Pascal}}==
Ordinal and floating point types of FreePascal are listed here: [[http://www.freepascal.org/docs-html/ref/refsu5.html]] and here: [[http://www.freepascal.org/docs-html/ref/refsu6.html]]
<lang pascal>var
a: byte; // 1 byte
b: word; // 2 byte
c: cardinal; // 4 byte
d: QWord; // 8 byte

x: real; // 4 byte
y: double; // 8 byte</lang>


=={{header|Perl}}==
=={{header|Perl}}==