Page 1 of 1

Problem with float...

Posted: Tue Aug 09, 2011 3:38 pm
by PIC_Man
i have created a c-file like the tutorial flowcode 4 , a simple operation with floating point numbers( variable type float). there are no error during compilation, but when used the simple operation like +, - , * , /, the result was wrong and the lcd shows -1.///////.
the lcd in flowcode-simulation shows 0.000000.
the same problem is in the macro. only the functions fadd(),fmul() a.s.o. works correct. i have no idea about the reason.can you help me??

Re: Problem with float...

Posted: Tue Aug 09, 2011 3:41 pm
by DavidA
Hello,

Please post in the Flowcode V4 forums as you state you use Flowcode V4.

Help on how to do this is available here:

http://www.matrixmultimedia.com/support ... f=29&t=602

Re: Problem with float...

Posted: Wed Aug 10, 2011 2:23 pm
by DavidA
Thank you for registering as a V4 user!

Please post your Flowcode file for us to look at for you.

Re: Problem with float...

Posted: Wed Aug 10, 2011 2:43 pm
by PIC_Man
Please see the file in the attachment....
Testumgebung_PIC16XXXX_C.fcf
(6 KiB) Downloaded 227 times

Re: Problem with float...

Posted: Wed Aug 10, 2011 3:02 pm
by DavidA
Hello,

You have written the calculation in a c-code block rather than a calculation block, I have attacvhed a working version for you to look at.
Testumgebung_PIC16XXXX_C.fcf
(6 KiB) Downloaded 281 times