LogoLogo
  • Internet Object 1.0
  • Internet Object
    • Abstract
    • The Poetic Principles of Internet Object
    • Objectives
    • Introducing Internet Object
  • The Structure
    • Internet Object Document
      • Header
      • Data Sections
    • Structural Elements
      • Structural Characters and Literals
      • Literals
      • Other Special Characters
      • Whitespaces
    • Values Representations
      • Objects
      • Arrays
      • Strings
        • Open Strings
        • Regular Strings
        • Raw Strings
      • Numeric Values
        • Number
        • BigInt
        • Decimal
        • Special Numeric Integer Formats
          • Hexadecimal
          • Octal
          • Binary
        • NaN and Infinity
      • Binary
      • Date and Time
      • Booleans
      • Nulls
    • Comments
    • Encoding
  • The Collections
    • Collection
    • Creating Collection
    • Collection Rules
    • Data Streaming
  • The Definitions
    • Definitions
    • Variables
    • Complex Schema
  • Schema Definition Language
    • Internet Object Schema
    • The structure
    • Data Types
      • Any
      • String
        • String Derived Types
          • Email
          • URL
          • Date
          • Time
          • DateTime
      • Number
        • Derived Types
          • int
          • byte
          • int16
          • int32
      • Object
      • Array
      • Bool
    • Dynamic Schema
    • Is Object, a MemberDef or a Schema?
  • Other
    • Best Practices
    • FAQs
    • Contributors
    • License
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. The Structure
  2. Values Representations
  3. Numeric Values
  4. Special Numeric Integer Formats

Binary

PreviousOctalNextNaN and Infinity

Last updated 10 months ago

Was this helpful?

Internet Object supports binary non-fractional integer values. The hexadecimal integer may be prefixed with optional plus or minus signs and must start with "0b" or "0B" literal characters. It is then followed by one or more 0 or 1 digits.

The Structure of Binary Integer

Chars

Char Code

Detail

-

U+2010

Minus Sign

+

U+002B

Plus Sign

0

U+0030

Zero

B

U+0058

Latin uppercase letter B

b

U+0078

Latin lowercase letter b

Binary Digits

0 or 1

U+0030 to U+0031

ASCII digits - zero to one

Some examples of Binary Integer values...

0B01100010, 0b010010010, +0B1010101010, -0b0111111

The binary format does not support fractional non-integer values!