Difference between revisions of "period/fr"

From Lazarus wiki
Jump to navigationJump to search
(Creating and titles translation)
 
Line 1: Line 1:
 
{{period}}
 
{{period}}
  
== Marque de racine (radix mark) ==
+
== Séparateur décimal ==
[[Pascal]] uses the <syntaxhighlight lang="pascal" inline>.</syntaxhighlight> (dot) to separate the integer and fractional part in literal decimal integers.
+
[[Pascal/fr|Pascal]] utilise le <syntaxhighlight lang="pascal" inline>.</syntaxhighlight> (point) pour séparer les parties entière et fractionnaire dans un nombre décimal.
 
<syntaxhighlight lang="pascal">
 
<syntaxhighlight lang="pascal">
 
myReal := 6.28318
 
myReal := 6.28318
 
</syntaxhighlight>
 
</syntaxhighlight>
At least one digit in front of the period is mandatory.
+
Au moins un chiffre devant le point est obligatoire. Le cas échéant, <syntaxhighlight lang="pascal" inline>0</syntaxhighlight> comme partie entière ne doit pas être omise.
A <syntaxhighlight lang="pascal" inline>0</syntaxhighlight> integer part must not be omitted.
 
  
Numbers noted in a non-decimal base can not be noted in that way.
+
Les nombres notés avec une base de numération non décimale ne peuvent être noté de cette façon.
E. g. the numeric value “a half” can not be written as <syntaxhighlight lang="pascal" inline>%0.1</syntaxhighlight> ([[Percent sign|<syntaxhighlight lang="pascal" inline>%</syntaxhighlight>]] being the prefix marking [[Binary numeral system|binary numbers]]).
+
 
 +
P.ex. la valeur numérique "un demi" ne peut pas être écrite comme <syntaxhighlight lang="pascal" inline>%0.1</syntaxhighlight> ([[Percent sign/fr|<syntaxhighlight lang="pascal" inline>%</syntaxhighlight>]] étant la préfixe indiquant la [[Binary numeral system/fr|notation binaire]].
  
 
== Sélecteur de portée d'un identificateur ==
 
== Sélecteur de portée d'un identificateur ==

Revision as of 11:48, 3 May 2020

English (en) suomi (fi) français (fr)

Séparateur décimal

Pascal utilise le . (point) pour séparer les parties entière et fractionnaire dans un nombre décimal.

myReal := 6.28318

Au moins un chiffre devant le point est obligatoire. Le cas échéant, 0 comme partie entière ne doit pas être omise.

Les nombres notés avec une base de numération non décimale ne peuvent être noté de cette façon.

P.ex. la valeur numérique "un demi" ne peut pas être écrite comme %0.1 (% étant la préfixe indiquant la notation binaire.

Sélecteur de portée d'un identificateur

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.

Etendue

Two consecutive dots .. let you specify an ordinal type sub-range.

type
	signumCodomain = -1..1;

This is the same as math.TValueSign.

Fin de module

The main block of any module, i. e. program, unit or library, has to be closed with an end “dot”:

program hiWorld(input, output, stderr);

begin
	writeLn('Hi world!');
end.

It can be seen as an adoption of natural (written) languages, where a full stop marks an end of a sentence.

Anything else after the final end., assuming syntactical correctness, will be ignored by the compiler.

Espace de nom

Unit names containing dots create namespaces.

Valeur ASCII

In ASCII, the character code decimal 46 (or hexadecimal 2E) is defined to be . (full stop).


Barre de navigation par sujet: Symboles Pascal
simples caractères

+ (plus)  •  - (moins)  •  * (astérique)  •  / (barre oblique)
= (égal à)  •  > (supérieur à)  •  < (inférieur à)
. (point)  •  : (deux-points)  •  ; (point-virgule)
^ (Chapeau)  •  @ (at)
$ (Dollar)  •  & (ampersand)  •  # (hash)
' (apostrophe)

Paires de caractères

<> (non égal à)  •  <= (moins ou égal à)  •  := (devient)  •  >= (supérieur ou égal à)

 •  >< (Différence symétrique)  •  // (Double barre oblique)