Datatypes › numeric

Binary number

ID binary_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 2 with the digits 0 and 1, with or without the prefix 0b that programming languages use. A decimal number made of zeros and ones also matches when the prefix is missing, so use the field name or context.

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[bB])?[01]+$

Python re syntax.

Examples

ValueDescription
0b101111 with the prefix
10101042 without the prefix
1021 invalidThe digit 2

Translations

LanguageNameDescription
RussianЧисло в двоичной записи

Use this record