(zettel (meta (back "00001006030000 00001012931200") (backward "00001006030000 00001012931200") (box-number "1") (created "20210212135017") (forward "00001007705000 00001007706000") (modified "20230612183900") (published "20230612183900") (role "manual") (syntax "zmk") (tags "#manual #meta #reference #zettel #zettelstore") (title "Number Key Type")) (rights 4) (encoding "") (content "Values of this type denote a numeric integer value.\n\n=== Allowed values\nMust be a sequence of digits (\"\"0\"\"--\"\"9\"\"), optionally prefixed with a \"\"-\"\" or a \"\"+\"\" character.\n\n=== Query comparison\n[[Search operators|00001007705000]] for equality (\"\"equal\"\" or \"\"not equal\"\", \"\"has\"\" or \"\"not has\"\"), for lesser values (\"\"less\"\" or \"\"not less\"\"), or for greater values (\"\"greater\"\" or \"\"not greater\"\") are executed by converting both the [[search value|00001007706000]] and the metadata value into integer values and then comparing them numerically.\nInteger values must be in the range -9223372036854775808 … 9223372036854775807.\nComparisons with metadata values outside this range always returns a negative match.\nComparisons with search values outside this range will be executed as a comparison of the string representation values.\n\nAll other comparisons (\"\"match\"\", \"\"not match\"\", \"\"prefix\"\", \"\"not prefix\"\", \"\"suffix\"\", and \"\"not suffix\"\") are done on the given string representation of the number.\nIn this case, the number \"\"+12\"\" will be treated as different to the number \"\"12\"\".\n\n=== Sorting\nSorting is done by comparing the numeric values."))