I am totally baffled at this point…
See the attachment which shows the code with embedded diagnostic messages and the corresponding output.
float input_ratio is declared as a global variable… this code is within a function
fuel_value is an integer and enters with a value,
I expect input_ratio to return fuel_value divided by 1023 (or around 0.6) but yet it returns blank?