Number

A number is a numeric value.

Numeric Literals

A numeric literal is a number placed directly in your PlayBasic game code.

  • Base 10: Ex. 42
  • Float Base 10: Ex. 42.24
  • Binary: Ex %10
  • Hexadecimal: $FF

Numeric Data Types

The Basic Two

The two basic numeric data types in PlayBasic are the integer and float data types.

Integer

An integer is a whole number.

Float

A float is a number with a decimal point.

Representing Numbers

Conversion

  • Str$() - convert a number to a string
  • Val() - convert a string to a number

Related Pages

Backlinks

Categories: Data
page tags: math number