I’ve just started using NetBeans as an IDE, connected to SU as described in recent posts by @Neil_Burkholder.
When I hit a breakpoint, I want to see some values as lengths, not floats.
Some variables I set via an inputBox are shown in NetBeans at the break as Lengths, but some aren’t. And some variables used internally are too, but by no means all, and I can’t quite work out why not.
I tried initialising one of the ones that is just displaying as a float by setting: z_level = 0.feet
but it still displays as a float at the break.
Do I have to tell it to convert to a length, every time I increment it?
The inputbox will expect the user’s input to be whatever the default variable is.
So if the default is say 0.feet then the user can input a length value without a unit-suffix as a plain float/number [using the current units], or any other unit with a suffix e.g. 6" or 150mm…
If the inputbox’s value is already a ‘length’ there’s no need for further conversion when using it later…