Int (integer) can be expressed in decimal octal hexadecimal.
For example, 1 2 33 256 (decimal)
Float (real number type) can be expressed in decimal and exponential forms.
For example,1.21.1.1.1. These are real number types and must be decimal.
When to use it depends on the calculation and your own requirements.