C in flowcode
Posted: Wed May 07, 2008 10:44 am
i tried to implement a c code in flowcode but it showed some errors regarding the floating point value operations.
it does not support float to int conversion.
it gives the following errors on compiling the prog.
float val=0;
int i;
val=FCV_ADC_VALUE*5;
val=val/1024;
val=val*1000;
i=val;
FCV_ADC_VALUE=i;
ERRORS:
operation '=' using operands 'float' and 'float' is not supported
can't convert 'float' to 'signed int'
it does not support float to int conversion.
it gives the following errors on compiling the prog.
float val=0;
int i;
val=FCV_ADC_VALUE*5;
val=val/1024;
val=val*1000;
i=val;
FCV_ADC_VALUE=i;
ERRORS:
operation '=' using operands 'float' and 'float' is not supported
can't convert 'float' to 'signed int'