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

JavaScript

print(ee.Number(0).add(0.0));  // 0
print(ee.Number(0).add(1.2));  // 1.2
print(ee.Number(0).add(-3.4));  // -3.4

// Converting to a smaller integer type does not limit the range
print(ee.Number(0).toUint8().add(-1));  // -1
print(ee.Number(255).toUint8().add(123));  // 378

Python

# Your example goes here!