Variables

News of the week Wednesday 17th October 2012

What is a variable?

A variable is like boxes you can put anything into the box

Integer, Float and String.

What is Integer, Float and String.

Integer is a whole number such as 4 or 6 or 3476.

NOT surrounded by quote marks or speech marks.


Float is any number with a decimal point such as 3.4 or 569.13.

NOT surrounded by quote marks or speech marks.


String is any data that isn't an integer or a float.

Text is the most common string.

ARE surrounded by quote marks or speech marks.