Datatypes › numeric

Hexadecimal number

ID hex_number

Pattern of numericNot PIIDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Non-negative integer written in base 16 with the prefix 0x, as in programming languages, memory addresses and error codes. The pattern requires the prefix, because without it a value cannot be told from a hash, a colour or an identifier.

Pattern of
Numeric value numeric
Categories
All measurable values (percentage, amount and e.t.c), Common
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
65/100 · missing: source link, mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^0[xX][0-9A-Fa-f]+$

Python re syntax.

Examples

ValueDescription
0xFF255
0x1f4500
FF invalidThe prefix is missing

Translations

LanguageNameDescription
RussianЧисло в шестнадцатеричной записи

Use this record