website/docs/library/index/h3indexing.md
The H3 system assigns a unique hierarchical index to each cell. Each directed edge and vertex is assigned an index based on its origin or owner cell, respectively.
An H3Index is the 64-bit integer representation of an H3 index, which may be one of multiple modes to indicate the concept being indexed.
The canonical string representation of an H3Index is the hexadecimal representation of the integer, using lowercase letters. The string representation is variable length (no zero padding) and is not prefixed or suffixed.
Mode 0 contains a special index, H3_NULL, which is unique: it is bit-equivalent to 0.
This index indicates, specifically, an invalid, missing, or uninitialized H3 index;
it is analogous to NaN in floating point.
It should be used instead of an arbitrary Mode 0 index, due to its uniqueness and easy identifiability.
A mode 0 index could also indicate an error code has been provided instead of a valid H3 index.
The layout of an H3Index is shown below in table form. The interpretation of the "Mode-Dependent" field differs depending on the mode of the index.