Integers (Binary notation)

Integers in binary notation (i.e. binary integers) are formed using base 2, with the decimal digits 0 and 1 representing the values zero and one. Integers in binary notation are prefixed with the % symbol.

Example

Here are some examples of valid binary integers:

   %01100110     %0      %11111111

Syntax

   binary-integer = '%' binary-digit-sequence

   binary-digit-sequence = binary-digit { binary-digit }

   binary-digit = '0' | '1'