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