AutoIt+
  • Overview
  • Getting started
  • The language
    • Basic
    • Grammar
      • Expressions
      • Statements
      • Declarations
    • Operators
    • Variables
    • Types & values
      • Null
      • Booleans
      • Numbers
      • Strings
      • Functions
      • Classes
      • Pointers
    • Control flow
      • If statement
      • For loop
      • While loop
      • Break & continue
      • Error handling
    • Collections
      • Array
        • APIs
        • Implementation
      • Map
        • APIs
        • Implementation
    • Modules
    • Exceptions
  • Built-in modules
    • C
      • APIs
      • Constants
    • Math
      • APIs
      • Constants
    • Task
      • Types
      • APIs
    • Global
  • The aup
    • Compiler
    • Runtime
    • Options
Powered by GitBook
On this page
  • Syntax
  • Decimal
  • Hexadecimal
  • Binary
  • Implementation notes

Was this helpful?

  1. The language
  2. Types & values

Numbers

Syntax

Decimal

puts 3.14    // 3.14
puts 2.5     // 2.5
puts 1234    // 1234
puts 98      // 98

Hexadecimal

puts 0xff    // 255
puts 0xABC   // 2748

Binary

To write binary number, use '0b' prefix and binary digits (0 or 1).

puts 0b1       // 1
puts 0b100     // 4

In aup, the range of number is 1.7E +/- 308 (15 digits).

Implementation notes

// just a double

PreviousBooleansNextStrings

Last updated 3 years ago

Was this helpful?