ee.Array.round
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณจำนวนเต็มที่ใกล้เคียงกับอินพุตมากที่สุดทีละองค์ประกอบ
การใช้งาน | การคืนสินค้า |
---|
Array.round() | อาร์เรย์ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ input | อาร์เรย์ | อาร์เรย์อินพุต |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eArray.round()\u003c/code\u003e is a method that operates on each element of an array.\u003c/p\u003e\n"],["\u003cp\u003eThis method calculates and returns a new array where each element is the closest integer to the corresponding element in the input array.\u003c/p\u003e\n"]]],["The core function `Array.round()` operates element-wise on an input array, returning a new array. It calculates the nearest integer for each element in the input. The input is an array of numbers, and the output is also an array containing the rounded integer values.\n"],null,["# ee.Array.round\n\nOn an element-wise basis, computes the integer nearest to the input.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------|---------|\n| Array.round`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Array | The input array. |"]]