Difference between revisions of "Plus"
From Free Pascal wiki
Jump to navigationJump to searchm |
m |
||
Line 1: | Line 1: | ||
− | + | ||
{{Plus}} | {{Plus}} | ||
<div style="float:left; margin: 0 10px 10px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">+</div> | <div style="float:left; margin: 0 10px 10px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">+</div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
The symbol '''''+''''' (pronounced "plus") is used to : | The symbol '''''+''''' (pronounced "plus") is used to : | ||
Line 9: | Line 17: | ||
A := 1 + 3; // -> A = 4 | A := 1 + 3; // -> A = 4 | ||
B := 'two strings ' + 'concatenated'; // -> B = 'two strings concatenated' | B := 'two strings ' + 'concatenated'; // -> B = 'two strings concatenated' | ||
− | |||
{{Symbols}} | {{Symbols}} |
Revision as of 14:17, 8 November 2016
│
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
+
The symbol + (pronounced "plus") is used to :
- add two numbers, the result is a number
- or concatenate two strings, the result is a string.
A := 1 + 3; // -> A = 4 B := 'two strings ' + 'concatenated'; // -> B = 'two strings concatenated'
single characters |
|
character pairs |
|