Page 1 of 1
array with floating point numbers
Posted: Wed Oct 06, 2010 12:09 pm
by Jan Lichtenbelt
Is it possible to declare an array for floating point numbers in the Supplementary Code (under opject options in Flowcode)? If yes, how to use these these floating point variables in the flowcode program? If possible, please give a simple example.
Thanks
Jan Lichtenbelt
Re: array with floating point numbers
Posted: Wed Oct 06, 2010 12:35 pm
by Benj
Hello Jan,
You can do this directly through Flowcode.
Create a new variable and set the type to float. Then give it a name and at the end of the name add a set of square brackets contining the number of elements you would like.
eg. float_var[3]
You can then reference the variable by using:
float_var[0]
float_var[1]
float_var[2]
Re: array with floating point numbers
Posted: Wed Oct 06, 2010 1:34 pm
by Jan Lichtenbelt
Oh, that makes life much easier.
Thanks
Jan