convert from long to float

Hi guys,

I need to convert a 32 bit value(long) to a 32 bit float. Unfortunately there is no itof function in C and wikipedia does not give a simple solution.

Casting simply does not do the conversion correctly, is there a simple way of doing this conversion?

Thanks

More questions in this forum