Values

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Values

Post by wayne millard »

Is it flowcode or the the compiler that can't give numbers in 0.1 intervels.
Because have project that devides one number by a other number that could be less than one or more than 0.

Thanks
Wayne M :D

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello Wayne

Im afraid that it is a bit of both.

The good news is that there is a library available for Flowcode which allows it to use 32bit floating point numbers.

The drawback is that the calls to the library are in C code so the functions will not simulate. However they should work perfectly on the hardware.

Also note that the time to complete the calculation will be greatly increased due to the increase in complexity to manage the 32 bit numbers.

Both the library and the example files can be downloaded from here.

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

An alternative solution is to use a multiplyer in your calculation. So instead of the range being between 0 and 1 you could use integer values between 0 and 10 or 0 and 100.

Post Reply