Type Definitions
binaryArray
A binary number represented as an array of numbers with either the value of 1 or 0.
Type:
- Array.<number>
Example
[1, 1, 0, 1, 0, 0, 1] // The decimal value of 77
binaryString
A binary number represented in string format, containing only the characters 1 and 0.
Type:
- string
Example
'1001101' // The decimal value of 77
decimal
A integer number value, anywhere from 0 to 4,294,967,295.
Type:
- number
hexString
A binary number represented in string format, containing only the characters 0-9 and A-F.
Type:
- string
Example
'0x4D' // The decimal value of 77
word
An Object representing a single word value (e.g. 4 bits) in 3 different formats.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
binary |
binaryString | A string that represents a binary value, consisting of 1's and 0's. |
hex |
hexString | A string that represents a hexadecimal value, consisting of the characters 0-9 and A-F. |
decimal |
decimal | A decimal number value. |
Example
{ binary: '0101', hex: '5', decimal: 5 }