Specification: Integers

Profiles: basic v1

Integer-valued data appears in several closely related data types, including machine integers such as Base.Int, arbitrary-precision integers such as BigInt, and machine-sized variants such as Int16 and UInt64.

Encoding rules

Canonical Example Payload

The following payload is taken directly from the current rosetta-stone corpus.

{
  "_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
  "_type": "BigInt",
  "data": "1"
}

Documented Profiles in This Corpus

This table records the profile/version pairs currently represented by the rosetta-stone examples for this data type. Add new rows as new systems or encoding revisions are documented.

Profile Version Example Root type
Oscar 1.0.5 BigInt BigInt
Oscar 1.0.5 Int16 Int16
Oscar 1.0.5 Small Integer Base.Int
Oscar 1.0.5 UInt UInt64
Oscar 1.1.2 BigInt BigInt
Oscar 1.1.2 Int16 Int16
Oscar 1.1.2 Small Integer Base.Int
Oscar 1.1.2 UInt UInt64
Oscar 1.2.2 BigInt BigInt
Oscar 1.2.2 Int16 Int16
Oscar 1.2.2 Small Integer Base.Int
Oscar 1.2.2 UInt UInt64
Oscar 1.3.1 BigInt BigInt
Oscar 1.3.1 Int16 Int16
Oscar 1.3.1 Small Integer Base.Int
Oscar 1.3.1 UInt UInt64
Oscar 1.4.1 BigInt BigInt
Oscar 1.4.1 Int16 Int16
Oscar 1.4.1 Small Integer Base.Int
Oscar 1.4.1 UInt UInt64
Oscar 1.5.1 BigInt BigInt
Oscar 1.5.1 Int16 Int16
Oscar 1.5.1 Small Integer Base.Int
Oscar 1.5.1 UInt UInt64
Oscar 1.6.0 BigInt BigInt
Oscar 1.6.0 Int16 Int16
Oscar 1.6.0 Small Integer Base.Int
Oscar 1.6.0 UInt UInt64
Oscar 1.7.0 BigInt BigInt
Oscar 1.7.0 Int16 Int16
Oscar 1.7.0 Small Integer Base.Int
Oscar 1.7.0 UInt UInt64

Rosetta Stone Examples