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??
Problem with float...
Moderator: Benj
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Problem with float...
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
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
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Problem with float...
Thank you for registering as a V4 user!
Please post your Flowcode file for us to look at for you.
Please post your Flowcode file for us to look at for you.
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Problem with float...
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.
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.