ee.Number.bitwiseNot

यह फ़ंक्शन, इनपुट के बिटवाइज़ NOT की कैलकुलेशन करता है. यह कैलकुलेशन, सबसे छोटे ऐसे पूर्णांक टाइप में की जाती है जिसमें इनपुट को सेव किया जा सकता है.

इस्तेमालरिटर्न
Number.bitwiseNot()नंबर
आर्ग्यूमेंटटाइपविवरण
यह: inputनंबरइनपुट वैल्यू.

उदाहरण

कोड एडिटर (JavaScript)

/**
 * Unsigned 8-bit type example.
 *
 * 25 as binary:    00011001
 * Flip each digit: 11100110
 *
 * 11100110 is signed 8-bit binary for -26.
 * (binary interpreted using smallest signed integer type containing the input).
 */

print(ee.Number(25).bitwiseNot());

Python सेटअप करना

Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, Python एनवायरमेंट पेज देखें.

import ee
import geemap.core as geemap

Colab (Python)

"""Unsigned 8-bit type example.

25 as binary:    00011001
Flip each digit: 11100110

11100110 is signed 8-bit binary for -26.
(binary interpreted using smallest signed integer type containing the input).
"""

print(ee.Number(25).bitwiseNot().getInfo())