|
PDAcalc classic function
+
This operator can also be used to add strings and numbers, result='Volume='+5.456+' liters'
Description
After values are converted to strings adding them will concatenate the string and not add the values as shown below.
| Result
= A + B |
| Result |
A |
B |
string
'Vol=123' |
string
'Vol=' |
string
'123' |
string
'45 kHz' |
value
45 |
string
' kHz' |
string
'W=12.56' |
string
'W=' |
value
12.56 |
value
47.12 |
value
34.67 |
value
12.45 |
Note:
If you want to use the minus sign to add a negative number put it
between parentheses as shown below.
val='Val='+(-x)
See also
|