Difference between revisions of "Comma"

From Free Pascal wiki
Jump to navigationJump to search
 
Line 3: Line 3:
 
<div style="float:right; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">,</div>
 
<div style="float:right; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">,</div>
  
The symbol <syntaxhighlight lang="pascal" enclose="none">,</syntaxhighlight> (pronounced "comma") is used in [[Pascal]] in several ways.
+
The symbol <syntaxhighlight lang="pascal" inline>,</syntaxhighlight> (pronounced "comma") is used in [[Pascal]] in several ways.
  
 
* It is used to separate the [[Variable|variables]].  
 
* It is used to separate the [[Variable|variables]].  
* It is used to separate the [[Constant|constant]] in [[Case|<syntaxhighlight lang="pascal" enclose="none">case</syntaxhighlight>]] statement.
+
* It is used to separate the [[Constant|constant]] in [[Case|<syntaxhighlight lang="pascal" inline>case</syntaxhighlight>]] statement.
* It is used to separate the [[Unit|<syntaxhighlight lang="pascal" enclose="none">unit</syntaxhighlight>]] in [[Uses|<syntaxhighlight lang="pascal" enclose="none">uses</syntaxhighlight>]] statement.
+
* It is used to separate the [[Unit|<syntaxhighlight lang="pascal" inline>unit</syntaxhighlight>]] in [[Uses|<syntaxhighlight lang="pascal" inline>uses</syntaxhighlight>]] statement.
 
    
 
    
  
 
== other remarks ==
 
== other remarks ==
* In [[ASCII]] the [[Char|character]] <syntaxhighlight lang="pascal" enclose="none">,</syntaxhighlight> : has the value <syntaxhighlight lang="pascal" enclose="none">44</syntaxhighlight>.
+
* In [[ASCII]] the [[Char|character]] <syntaxhighlight lang="pascal" inline>,</syntaxhighlight> : has the value <syntaxhighlight lang="pascal" inline>44</syntaxhighlight>.
  
  
 
{{Symbols}}
 
{{Symbols}}

Latest revision as of 17:25, 6 August 2022

English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

,

The symbol , (pronounced "comma") is used in Pascal in several ways.


other remarks



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)