Float is a knowledge kind that represents an approximate worth. It’s usually used to symbolize actual numbers. Floats are much less exact than integers, however they will symbolize a wider vary of values.
Floats are essential as a result of they permit us to symbolize real-world knowledge that’s not all the time. For instance, we will use floats to symbolize the worth of an merchandise, the temperature of a room, or the velocity of a automotive. Floats are additionally used extensively in scientific and engineering functions.