Introduction
Integer and floating-point types let you work with whole numbers and numbers with decimals in your scripts.
When you need to count items, like files or users (use integers).
When you want to measure something that can have fractions, like temperature or price (use floating-point).
When doing math calculations that require decimals, like averages or percentages.
When comparing numbers to make decisions in your script.
When storing numeric data that will be used later in your script.