Numbers

Integers

Decimal       123 
Octal 0123
Hexadecimal 0x123
Binary 0b1010
  • The standard class for integers is Fixnum
  • If a value is too large for Fixnum, it's stored as Bignum, which can hold a value of any size
  • Underscore characters are ignored in a digit string

Floating-point numbers

  • aka "Floats"
  • Stored using the Float class
  • The decimal point must be followed by a digit
12.3
-.12e3
12e-3