Numerical Data

What are the two main types of numerical data?

An interger, or int for short, is a number which doesn't have a decimal point. A float is a number that does contain a decimal point.

How do you find out what type of data you're working with?

You use the type() function, which indentifies the data type of its argument.

How do you convert between the two numerical types?

The float() function is used to convert an integer to a float, and also converts properly formatted strings to floats whenever numerical information starts as a string. The int() function converts strings to integers, as well as floats by dropping the number's decimal portion without rounding.