Page 1 of 1

Change Float variable to other

Posted: Mon Apr 29, 2019 5:44 pm
by MJU
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.

Re: Change Float variable to other

Posted: Tue Apr 30, 2019 2:17 pm
by jhill
Yep, this was the same in 7, not sure why?

Re: Change Float variable to other

Posted: Wed May 01, 2019 10:25 am
by Benj
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.