ee.Array.round
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oblicza najbliższą liczbę całkowitą dla każdego elementu danych wejściowych.
Wykorzystanie | Zwroty |
---|
Array.round() | Tablica |
Argument | Typ | Szczegóły |
---|
to: input | Tablica | Tablica wejściowa. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]