Float is a knowledge sort that represents an approximate worth. It’s sometimes used to signify actual numbers. Floats are much less exact than integers, however they will signify a wider vary of values.
Floats are necessary as a result of they permit us to signify real-world knowledge that isn’t at all times. For instance, we are able to use floats to signify 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 purposes.