Variables

WHAT ARE VARIABLES, STRINGS, FLOATS AND INTEGERS?

What is a variable?

A quantitative variable is naturally measured as a number for which meaningful arithmetic operations make sense. Examples: Height, age, crop yield, GPA, salary, temperature, area, air pollution index (measured in parts per million), etc.

What is a string?

Use the String data type to hold multiple characters without the array management overhead of Char(), an array of Char elements.


The default value of String is Nothing (a null reference). Note that this is not the same as the empty string (value "").

What is a Float?

The float type is stored as a four-byte, single-precision, floating-point number. It represents a single-precision 32-bit IEEE 754 value

What is a Integer?

These fall into several sizes all determined by how many bytes of storage they require and whether they can hold signed numbers (i.e. negative numbers) or unsigned. there are four sizes of integers- one byte, two bytes, four bytes and eight bytes, each with a signed and unsigned version. 8 in all. These are usually described by how many bits they occupy- so the four sizes are 8, 16, 32 and 64 bits.