+ 2
When you need to work with fractional number you can choose between float (single precision floating number) and double (double precision floating number) you can't use integers (whole numbers) because they don't support fractions. When you use integer to save 23.45 for example, you only get to keep the 23, the 0.45 is discarded, that's what float or double is used for, storing fractional numbers.
13th Mar 2018, 2:43 PM
Ipang