ee.Array.round
On an element-wise basis, computes the integer nearest to the input.
Usage | Returns |
---|
Array.round() | Array |
Argument | Type | Details |
---|
this: input | Array | The input array. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`Array.round()` is a method that operates on each element of an array."],["This method calculates and returns a new array where each element is the closest integer to the corresponding element in the input array."]]],["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"]]