ee.Number.bitwiseNot

Calculates the bitwise NOT of the input, in the smallest signed integer type that can hold the input.

שימושהחזרות
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 Environment.

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())