• Incorrect compile for convert float to short/int16
    Hi, the following code for STM32F4 (Cortex-M4): float fZero= 0.; float fInfinity; short sTestPlus, sTestNeg; int main( void){ fInfinity= 1.f/fZero; sTestPlus= fInfinity; fInfinity= -1.f/fZero;...
  • Incorrect compile for convert float to short/int16
    Hi, the following code for STM32F4 (Cortex-M4): float fZero= 0.; float fInfinity; short sTestPlus, sTestNeg; int main( void){ fInfinity= 1.f/fZero; sTestPlus= fInfinity; fInfinity= -1.f/fZero;...
  • converting float to longwords
    Hello...first, sorry for the bad suuamry, i cannot change it, i hope you are understand what i mean. i'm doing some project with lots of float data type. now i need to convert the result of calculation...
  • converting float to longwords
    Hello...first, sorry for the bad suuamry, i cannot change it, i hope you are understand what i mean. i'm doing some project with lots of float data type. now i need to convert the result of calculation...
  • 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...