Plus

Aus JACK Wiki
Zur Navigation springen Zur Suche springen

Beschreibung

Bei der Addition werden zwei Zahlen miteinander addiert.

Syntax

 a + b
 plus(a,b)

Parameter

Return Value

Die Rückgabe ist abhängig von der Eingabe. Dabei wird soweit wie möglich der

Beispiele

<math>3+5</math>    --> returns <math>8</math> 
<math>\frac{1}{2} + \frac{3}{2}</math>    --> returns <math>2</math> 
<math>2+a</math>    --> returns <math>2+a</math> 
<math>b+c</math>    --> returns <math>b+c</math> 
<math>sin(x) + z</math>    --> returns <math>sin(x) + z</math>

<math>cos(0)+a</math> --> returns <math>1+a</math>


Hinweise

  • Mit equal ("==") lässt sich das Ergebnis anschließend ebenfalls mit einem anderem Objekt vergleichen.