ee.Number.leftShift

इस फ़ंक्शन की मदद से, v1 को v2 बिट से बाईं ओर शिफ़्ट किया जाता है.

इस्तेमालरिटर्न
Number.leftShift(right)नंबर
आर्ग्यूमेंटटाइपविवरण
यह: leftनंबरबाईं ओर मौजूद वैल्यू.
rightनंबरदाईं ओर मौजूद वैल्यू.

उदाहरण

कोड एडिटर (JavaScript)

/**
 * Unsigned 8-bit type example.
 *
 * 20 as binary:  00010100
 * Left shift 2:  01010000
 *
 * 01010000 is binary for 80.
 */

print(ee.Number(20).leftShift(2));  // 80

Python सेटअप करना

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

import ee
import geemap.core as geemap

Colab (Python)

"""Unsigned 8-bit type example.

20 as binary:  00010100
Left shift 2:  01010000

01010000 is binary for 80.
"""

print(ee.Number(20).leftShift(2).getInfo())  # 80