title: Number Key Type role: manual tags: #manual #meta #reference #zettel #zettelstore syntax: zmk back: 00001006030000 00001012931200 backward: 00001006030000 00001012931200 box-number: 1 copyright: (c) 2020-present by Detlef Stern created: 20210212135017 forward: 00001007705000 00001007706000 lang: en license: EUPL-1.2-or-later modified: 20230612183900 published: 20230612183900 visibility: public Values of this type denote a numeric integer value. === Allowed values Must be a sequence of digits (""0""–""9""), optionally prefixed with a ""-"" or a ""+"" character. === Query comparison [[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. Integer values must be in the range -9223372036854775808 … 9223372036854775807. Comparisons with metadata values outside this range always returns a negative match. Comparisons with search values outside this range will be executed as a comparison of the string representation values. All other comparisons (""match"", ""not match"", ""prefix"", ""not prefix"", ""suffix"", and ""not suffix"") are done on the given string representation of the number. In this case, the number ""+12"" will be treated as different to the number ""12"". === Sorting Sorting is done by comparing the numeric values.