सूचना: जिन गैर-व्यावसायिक प्रोजेक्ट के लिए Earth Engine को 
15 अप्रैल, 2025 से पहले रजिस्टर किया गया है उन्हें ऐक्सेस बनाए रखने के लिए, 
गैर-व्यावसायिक इस्तेमाल से जुड़ी ज़रूरी शर्तों की पुष्टि करनी होगी. अगर आपने 26 सितंबर, 2025 तक पुष्टि नहीं की, तो आपके ऐक्सेस को होल्ड पर रखा जा सकता है.
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.Array.abs
    
    
      
    
    
      
      संग्रह की मदद से व्यवस्थित रहें
    
    
      
      अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
यह फ़ंक्शन, हर एलिमेंट के हिसाब से इनपुट की ऐब्सलूट वैल्यू का हिसाब लगाता है.
| इस्तेमाल | रिटर्न | 
|---|
| Array.abs() | Array | 
| आर्ग्यूमेंट | टाइप | विवरण | 
|---|
| यह: input | Array | इनपुट ऐरे. | 
  
  
  उदाहरण
  
    
  
  
    
    
  
  
  
  
    
    
    
      कोड एडिटर (JavaScript)
    
    
  print(ee.Array([-1]).abs());  // [1]
print(ee.Array([-2, 0, 2]).abs());  // [2,0,2]
print(ee.Array([[-3.1, -2], [-1, 0]]).abs());  // [[3.1,2],[1,0]]
  
    
  
  
    
  
  
  
  
    
  
    
  Python सेटअप करना
  Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, 
    Python एनवायरमेंट पेज देखें.
  import ee
import geemap.core as geemap
  
    
    
      Colab (Python)
    
    
  display(ee.Array([-1]).abs())  # [1]
display(ee.Array([-2, 0, 2]).abs())  # [2, 0, 2]
display(ee.Array([[-3.1, -2], [-1, 0]]).abs())  # [[3.1, 2], [1, 0]]
  
  
  
  
  
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
  आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
  
  
  
    
      [null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],["The `abs()` function computes the absolute value of each element in an input array. It takes an array as input (`this: input`) and returns a new array. The function operates element-wise, transforming negative values to their positive counterparts while leaving non-negative values unchanged. Examples show its use in JavaScript and Python, demonstrating its application to one-dimensional and two-dimensional arrays. In both cases it is used by the `.abs()` at the end of the array.\n"]]