Data Types

Scalar (contains only one value at a time)

  • boolean
  • int
  • float
  • string

Composite

  • arrays
  • objects

Numerical Values (int & float)

  • Decimal  -  10; -12 ; 1234
  • Octal  -  0666, 0100
  • Hexadecimal  -  0×123; 0xFF; -0xAA

Floating-point Notations

  • Decimal  -  0.12; 123.56; -.34
  • Exponential  -  2E3 (=2000), 1.2e3 (=1200)

Leave a Reply

You must be logged in to post a comment.