isClose#

geetools.ee_number.NumberAccessor.isClose(other, tol=1e-09)#

Check if a number is close to another number.

Parameters:
Returns:

A number with value 1 if the numbers are close, 0 otherwise.

Return type:

ee.Number

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

n = ee.Number(1.23456).geetools.isClose(1.23456, 1e-5)
n.getInfo()
1