Difference between revisions of "period"
(→radix mark: wording) |
|||
Line 46: | Line 46: | ||
signumCodomain = -1..1; | signumCodomain = -1..1; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == endpoint == | ||
+ | |||
+ | Point is also the endpoint of the [[Program|program]] and [[Unit|unit]]. [[Reserved word]] [[End|end]] and point: | ||
+ | |||
+ | <syntaxhighlight lang="pascal"> | ||
+ | end. | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | == ASCII and unicode value == | ||
+ | |||
+ | In [[ASCII]], the character code decimal <syntaxhighlight lang="pascal" enclose="none">46</syntaxhighlight> | ||
+ | (or [[Hexadecimal|hexadecimal]] <syntaxhighlight lang="pascal" enclose="none">2E</syntaxhighlight>) is defined to be | ||
+ | <syntaxhighlight lang="pascal" enclose="none">.</syntaxhighlight> (Period sign). | ||
{{Symbols}} | {{Symbols}} |
Revision as of 08:33, 20 April 2018
│
English (en) │
suomi (fi) │
français (fr) │
radix mark
Pascal uses the .
(dot) to separate the integer and fractional part in literal decimal integers.
myReal := 6.28318
At least one digit in front of the period is mandatory.
A 0
integer part must not be omitted.
Numbers noted in a non-decimal base can not be noted in that way.
E.g. a half can not be written as %0.1
(%
being the prefix marking binary numbers).
identifier scope selector
For structured data types the dot separates the data structure identifier from its individual components, i.e. methods or data fields.
1program recordDemo(input, output, stderr);
2
3uses
4 Linux;
5
6var
7 info: TSysInfo;
8begin
9 if sysInfo(@info) <> 0 then
10 begin
11 halt(1);
12 end;
13
14 writeLn('uptime: ', info.uptime, ' seconds');
15
16 with info do
17 begin
18 writeLn('total free: ', freeram, ' bytes');
19 end;
20end.
range
Two consecutive dots ..
let you specify an integer sub-range.
type
signumCodomain = -1..1;
endpoint
Point is also the endpoint of the program and unit. Reserved word end and point:
end.
ASCII and unicode value
In ASCII, the character code decimal 46
(or hexadecimal 2E
) is defined to be
.
(Period sign).
single characters |
|
character pairs |
|