Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 411 Bytes

File metadata and controls

20 lines (15 loc) · 411 Bytes

Numbers

Numbers can be written in a variety of forms:

  • Base 10
    • Numbers without a radix are assumed to be base 10.
    • Examples: 100, -50, 64, 0
  • Base 16
    • Indicated by a 0x prefix.
    • Examples: 0x01, 0x02000
  • Base 2
    • Indicated by a 0b prefix.
    • Examples: 0b1001, 0b0000101100110

Numbers may contain separators (underscores):

  • 100_000
  • 0x0_20_00
  • 0b1010_0011