This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1290NCPDT: How to convert from value from int32_t to float on the tm4c1290ncpdt-128-tqfp

Part Number: TM4C1290NCPDT

Tool/software: TI C/C++ Compiler

I'm having the hardest converting an int32_t to float. I didn't think it should be that hard.

For example, I have the following ratio:

signed int32 Numerator  = 2

signed int32 Denominator = 583

Ratio = Numerator / Denominator =  0.003430 . 

However, in the tm4c1290ncpdt-128-tqfp,   Ratio = 0.000000   (always).

How do I get the right number?