C++ defines the type float data as representing numbers that have a fractional part.
For example, 12.55.
Floating-point variables can either be small or large. A variable with float type occupies 4 bytes in size and can hold numbers from 10 - 308 to 10 + 308 with about 15 digits of precision. There is a long double, also available, that can hold numbers from 10 - 4932 to 10 + 4932 .