Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przekształć ciąg znaków w liczbę.
Wykorzystanie
Zwroty
ee.Number.parse(input, radix)
Liczba
Argument
Typ
Szczegóły
input
Ciąg znaków
Ciąg znaków do przekonwertowania na liczbę.
radix
Liczba całkowita, domyślnie: 10
Liczba całkowita określająca system liczbowy, z którego ma nastąpić konwersja. Jeśli dane wejściowe nie są liczbą całkowitą, podstawa musi być równa 10 lub nie może być określona.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["`ee.Number.parse()` converts a string to an Earth Engine Number object."],["The function accepts an optional `radix` argument for specifying the base of the number system (default is 10)."],["Leading zeros in the input string are automatically removed during conversion."],["The function can handle various input types like client-side strings, Earth Engine Strings, and values retrieved from Earth Engine features."]]],["`ee.Number.parse()` converts a string to a number. It accepts a string `input` and an optional `radix` (default 10), representing the base of the number system. If the input isn't an integer, radix must be 10 or unspecified. Leading zeros are removed during conversion. The examples show parsing client-side strings, `ee.String` objects, and ambiguous objects, both in JavaScript and Python. Base 16 conversions using radix are also shown.\n"]]