Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["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.uint8()\u003c/code\u003e casts a given Earth Engine Number to an unsigned 8-bit integer, resulting in a value within the range of 0 to 255.\u003c/p\u003e\n"],["\u003cp\u003eNumbers exceeding the maximum value of 255 will be truncated to 255, and numbers below 0 will be truncated to 0 when cast to uint8.\u003c/p\u003e\n"],["\u003cp\u003eCasting floating-point numbers to uint8 results in the loss of decimal precision, keeping only the integer part.\u003c/p\u003e\n"],["\u003cp\u003eThis function is useful for ensuring numerical values fit within the constraints of unsigned 8-bit data types often used in image processing and analysis.\u003c/p\u003e\n"]]],[],null,[]]