They are totally different - typically int
is just a straightforward 2's complement signed integer, while float
is a single precision floating point representation with 23 bits of mantissa, 8 bits exponent and 1 bit sign (see http://en.wikipedia.org/wiki/IEEE_754-2008).