Page 1 of 1

C in flowcode

Posted: Wed May 07, 2008 10:44 am
by raghavmonga
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'

Re: C in flowcode

Posted: Wed May 07, 2008 11:02 am
by Benj
Hello

Which version of Flowcode are you using (PIC/AVR/ARM)?

Re: C in flowcode

Posted: Thu May 08, 2008 6:03 am
by raghavmonga
I am using Flowcode v3 for PIC

Re: C in flowcode

Posted: Thu May 08, 2008 11:20 am
by Benj
Hello

This guide to the Floating point libraries should help you to get started with floating point numbers.

http://www.matrixmultimedia.com/support ... .php?t=505