[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eNumberField\u003c/code\u003e represents a field with a numeric value, inheriting from \u003ccode\u003eField\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNumberField\u003c/code\u003e constructor takes \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003evalue\u003c/code\u003e as arguments, where \u003ccode\u003ename\u003c/code\u003e is the field's name and \u003ccode\u003evalue\u003c/code\u003e is the numeric value.\u003c/p\u003e\n"],["\u003cp\u003eAttempting to set a non-numeric \u003ccode\u003evalue\u003c/code\u003e will raise a \u003ccode\u003eTypeError\u003c/code\u003e, and setting an out of range value will raise a \u003ccode\u003eValueError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey attributes include \u003ccode\u003elanguage\u003c/code\u003e, \u003ccode\u003ename\u003c/code\u003e, and \u003ccode\u003evalue\u003c/code\u003e, which respectively return the language code, the field's name, and the field's numeric value.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNumberField\u003c/code\u003e has the methods \u003ccode\u003e__eq__\u003c/code\u003e and \u003ccode\u003e__ne__\u003c/code\u003e that are used to check the equality and inequality of the values respectively.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.search.NumberField\n\n\u003cbr /\u003e\n\nA Field that has a numeric value.\n\nInherits From: [`Field`](../../../../google/appengine/api/search/Field), [`expected_type`](../../../../google/appengine/api/validation/Validator/expected_type)\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`google.appengine.api.search.search.NumberField\\`\n\n\u003cbr /\u003e\n\n google.appengine.api.search.NumberField(\n name, value=None\n )\n\nThe following example shows a number field named size:\nNumberField(name='size', value=10)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/search/search.py#L1043-L1044) \n\n __eq__(\n other\n )\n\nReturn self==value.\n\n### `__ne__`\n\n[View source](https://github.com/GoogleCloudPlatform/appengine-python-standard/tree/main/src/google/appengine/api/search/search.py#L1046-L1047) \n\n __ne__(\n other\n )\n\nReturn self!=value.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]