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
| Value | Description |
|---|---|
| 0b1011 | 11 with the prefix |
| 101010 | 42 without the prefix |
| 1021 invalid | The digit 2 |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Число в двоичной записи |
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/binary_number - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/values/binary_number.yamlon GitHub