Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eNumber.toUint16()\u003c/code\u003e casts a given Earth Engine Number to an unsigned 16-bit integer.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting value will be within the range of 0 to 65535, inclusive.\u003c/p\u003e\n"],["\u003cp\u003eNumbers outside this range will be clamped to the minimum or maximum value.\u003c/p\u003e\n"],["\u003cp\u003eFloating point numbers will lose decimal precision during the conversion.\u003c/p\u003e\n"]]],["The `toUint16()` method casts a number to an unsigned 16-bit integer, with a valid range of 0 to 65535. Input values outside this range are adjusted: values exceeding 65535 become 65535, and those below 0 become 0. Floating-point numbers lose their decimal precision. The method accepts the input number as an argument and returns the cast `Number`. Example code in Javascript and Python, show the casting and boundary behaviors.\n"],null,[]]