ee.Number

Constructs a new Number.

UsageReturns
ee.Number(number)Number
ArgumentTypeDetails
numberNumber|Object

A number or a computed object.

Examples

JavaScript

print(ee.Number(0));  // 0
print(ee.Number(1));  // 1
print(ee.Number(0.0));  // 0
print(ee.Number(1.0));  // 1
print(ee.Number(-1.0));  // -1
print(ee.Number(Math.PI));  // 3.141592653589793
print(ee.Number(1.2e-35));  // 1.2e-35
print(ee.Number(3.4e10));  // 34000000000

Python

# Your example goes here!