I need make operations with numbers more high than 255. How i can declare variable like dobble byte and, how i make operations where the result could be fractions, example, A = 10/6.
Thank you
Dobble byte and fractions
- 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:
Hello
To create a number that is more then 8 bit you need to move to 16 or 32 bit.
A 16 bit number is declared as an Int and a 32 bit number is declared as a float. You need to go to the Support section of the website to get the 32 bit library for Flowcode.
http://www.matrixmultimedia.com/support ... .php?t=505
Im afraid the result cannot be a fraction unless you use two variables to hold to top and bottom halves of the equation. This may also be fairly tricky to program.
To create a number that is more then 8 bit you need to move to 16 or 32 bit.
A 16 bit number is declared as an Int and a 32 bit number is declared as a float. You need to go to the Support section of the website to get the 32 bit library for Flowcode.
http://www.matrixmultimedia.com/support ... .php?t=505
Im afraid the result cannot be a fraction unless you use two variables to hold to top and bottom halves of the equation. This may also be fairly tricky to program.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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:
Ah I see. Yes version 2 of Flowcode only has byte variables.
The C compiler that Flowcode V2 uses is called C2C. This does support 16 bit integer variables. You can therefore create a variable in C using a C code icon.
for example
int number;
number = 11024;
number = number + 1;
number = FCV_BYTE1;
The C compiler that Flowcode V2 uses is called C2C. This does support 16 bit integer variables. You can therefore create a variable in C using a C code icon.
for example
int number;
number = 11024;
number = number + 1;
number = FCV_BYTE1;
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel