Previous Topic: String Concatenation Operator

Next Topic: Arithmetic Subtraction Operator

Arithmetic Addition Operator

The arithmetic addition (+) operator returns the sum of two numeric operands.

If the first operand is a number, but the second is a string or a Boolean, the second operand is converted to a number.

Examples:

1 + 2
Result = 3

1 + "JUAN"
Result = 1

1 + "32JUAN"
Result = 33

More information:

Arithmetic Subtraction Operator

Arithmetic Multiplication Operator

Arithmetic Division Operator


Copyright © 2010 CA. All rights reserved. Email CA about this topic