Primitive Types

Primitive types are the basic data types of JS++. Primitive types are built into the language itself.

  • bool

    The bool type is used to represent Boolean values.

  • byte

    The byte type is used to represent 8-bit unsigned two's-complement integers.

  • char

    The char type is used to represent a single 16-bit Unicode character.

  • double

    The double type is used to represent IEEE-754 double-precision floating-point numbers.

  • float

    The float type is used to represent IEEE-754 single-precision floating-point numbers.

  • int

    The int type is used to represent 32-bit signed two's-complement integers.

  • long

    The long type is used to represent 64-bit signed two's-complement integers.

  • short

    The short type is used to represent 16-bit signed two's-complement integers.

  • signed byte

    The signed byte type is used to represent 8-bit signed two's-complement integers.

  • string

    The string type is used to represent text via a sequence of characters.

  • Unified External Type

    The external type is used to represent all JavaScript types during compile time.

  • unsigned int

    The unsigned int type is used to represent 32-bit unsigned two's-complement integers.

  • unsigned long

    The unsigned long type is used to represent 64-bit unsigned two's-complement integers.

  • unsigned short

    The unsigned short type is used to represent 16-bit unsigned two's-complement integers.

  • void

    The void type is used to represent undefined values.

Share

HTML | BBCode | Direct Link