Difference between revisions of "Binary numeral system"

From Lazarus wiki
Jump to navigationJump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{Binary numeral system}
+
{{Binary numeral system}}
  
 
A binary numbers composed of two digits, 0 and 1. This base-2 system is
 
A binary numbers composed of two digits, 0 and 1. This base-2 system is
Line 9: Line 9:
 
== Conversion Table ==
 
== Conversion Table ==
  
{|   border="1" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px  solid; border-collapse: collapse;"
+
{| class="wikitable"
|   Binary  
+
! Binary !! [[Hexadecimal]] !! Decimal
|   [[Hexadecimal]]  
 
|   Decimal  
 
 
|-
 
|-
 
|   %0000000000000000  
 
|   %0000000000000000  
Line 131: Line 129:
 
== See also ==
 
== See also ==
  
[[Procedure]]
 
  
* [[doc:rtl/strutils/inttobin.html|IntToBin]] Converts an [[Integer|integer]] to a binary [[String|string]] representation.
+
* [[doc:rtl/strutils/inttobin.html|IntToBin]] - converts an [[Integer|integer]] to a binary [[String|string]] representation.
 +
* [[doc:rtl/system/binstr.html|binStr]] - Convert integer to string with binary representation.
 +
* [[Base_converting|Convert to any base]]
 +
* [[Procedure]]

Latest revision as of 17:38, 3 February 2018

Deutsch (de) English (en) español (es) suomi (fi) français (fr) português (pt) русский (ru)

A binary numbers composed of two digits, 0 and 1. This base-2 system is the basis for digital systems. Smallest binary item, called a bit (binary digit).

The binary number can be specified by preceding it with a percent sign (%).

Conversion Table

Binary Hexadecimal Decimal
  %0000000000000000     $0000     0  
  %0000000000000001     $0001     1  
  %0000000000000010     $0002     2  
  %0000000000000011     $0003     3  
  %0000000000000100     $0004     4  
  %0000000000000101     $0005     5  
  %0000000000000110     $0006     6  
  %0000000000000111     $0007     7  
  %0000000000001000     $0008     8  
  %0000000000001001     $0009     9  
  %0000000000001010     $000a     10  
  %0000000000001011     $000b     11  
  %0000000000001100     $000c     12  
  %0000000000001101     $000d     13  
  %0000000000001110     $000e     14  
  %0000000000001111     $000f     15  
  %0000000000010000     $0010     16  
  %0000000000010001     $0011     17  
  %0000000000010010     $0012     18  
  %0000000000010011     $0013     19  
  %0000000000010100     $0014     20  
  ...     ...     ...  
  %0000000010011111     $009f     159  
  %0000000010100000     $00a0     160  
  ...     ...     ...  
  %0000000011111111     $00ff     255  
  %0000000100000000     $0100     256  
  %0000000100000001     $0101     257  


See also