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

Numeric Values

Numbers in Internet Object

Providing accurate numerical representation for various applications, Internet Object numbers offers a system that efficiently handles tasks ranging from simple counting to complex financial calculations. It supports three numeric data types—Number, BigInt, and Decimal—designed specifically to meet different numerical requirements in modern applications.

[Diagram: The Number Values]

  • Number (64-bit floating-point): Ideal for fractional or general floating-point values.

  • BigInt: Suited for very large integers that exceed the 64-bit limit.

  • Decimal: A fixed-precision type that stores exact numeric values with a set number of decimal places, making it critical for high-precision applications like financial calculations.

Internet Object supports a variety of number formats, allowing:

  • Integers to be expressed in decimal (base 10), binary, octal, or hexadecimal.

  • Floating-point numbers to be written using scientific notation.

  • IEEE 754 special values such as NaN and Infinity to be represented.

Note: The term "decimal" is used in two contexts here:

  • Decimal (base‑10): Refers to the common numeral system.

  • Decimal (data type): A fixed-precision type (derived from RDBMS standards) used when exact precision is required, such as in financial calculations.

PreviousRaw StringsNextNumber

Last updated 3 months ago

Was this helpful?