ee.Number.add

Adds the first value to the second.

UsageReturns
Number.add(right)Number
ArgumentTypeDetails
this: leftNumber

The left-hand value.

rightNumber

The right-hand value.

Examples

Code Editor (JavaScript)

print('5 + 10', ee.Number(5).add(ee.Number(10)));  // 15
print('5 + 10.2', ee.Number(5).add(ee.Number(10.2)));  // 15.2
print('5 + -10.2', ee.Number(5).add(ee.Number(-10.2)));  // -5.199999999