Hi,
I have a question about the floating point syntax for the CC3200. It seems that the CC3200 give the correct value for a particular syntax but a false value for another syntax which is equivalent.
I read the adc and print it out using the following command,
UART_PRINT("\n\r ADC Voltage = %4.2fV \n\r",adcVoltageValue);
However,
adcVoltageValue = adcReading*(1.4/4096); always gives 65536.00
adcVoltageValue = adcReading*(14/10)*(1/4096); always gives 0.00
and
adcVoltageValue = (((adcReading*14)/10)/4096); gives the correct value.
Can any one please provide any pointers to what I may be missing. My floating point support is fpalib.
Thanks.