When generated a float variable, it isn't possible anymore to change the type.
When you want to edit a Float, all the other options are greyed out.
Change Float variable to other
Moderator: Benj
- 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:
Re: Change Float variable to other
Hello,
I think this has been done with a reason behind it, though i'm not sure what that reason is.
My guess is it's something to do with back when we worked with BoostC float maths were not natively supported by the compiler and needed to go via a library function. Keeping the variable as a float or not as a float allows us to better determine if the library calls are needed without having to constantly keep rechecking if the variable is still of type float.
It's a minor annoyance at times. I simply create a new variable and then use the search and replace feature to move any references to the old variable to the new one. Then delete the old variable and rename the new one.
I think this has been done with a reason behind it, though i'm not sure what that reason is.
My guess is it's something to do with back when we worked with BoostC float maths were not natively supported by the compiler and needed to go via a library function. Keeping the variable as a float or not as a float allows us to better determine if the library calls are needed without having to constantly keep rechecking if the variable is still of type float.
It's a minor annoyance at times. I simply create a new variable and then use the search and replace feature to move any references to the old variable to the new one. Then delete the old variable and rename the new one.
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