Period

This is an old revision of Period, edited by Kai Burghardt at . The current revision is 127312.

/* radix mark */ wording

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.

program recordDemo(input, output, stderr);

uses
    Linux;

var
    info: TSysInfo;
begin
    if sysInfo(@info) <> 0 then
    begin
        halt(1);
    end;
    
    writeLn('uptime: ', info.uptime, ' seconds');
    
    with info do
    begin
        writeLn('total free: ', freeram, ' bytes');
    end;
end.

range

Two consecutive dots .. let you specify an integer sub-range.

type
    signumCodomain = -1..1;
navigation bar: topic: Pascal symbols
single characters + (plus)  •  - (minus)  •  * (asterisk)  •  / (slash) = (equal)  •  > (greater than)  •  < (less than) . (period)  •  : (colon)  •  ; (semi colon) ^ (hat)  •  @ (at) $ (dollar sign)  •  & (ampersand)  •  # (hash) ' (single quote)
character pairs

<> (not equal)  •  <= (less than or equal)  •  := (becomes)  •  >= (greater than or equal)

 •  >< (symmetric difference)  • 

// (double slash)