Greetings, my apologies if this is something I should have figured out from the material out there, but the manual didn't seem to cover it and google game me solutions that only seem to work for C or C+.

Does anybody know how I might display a variable, with decimal places, without having it appear like 37.600? I had been using the disp command, but it forces me to choose how many decimal places I want when setting up the display. I would like to have three when my variable is at a value of 45.555, for example, but if it then changes to a 45.500 I would prefer to not have those extra zeros kicking around. I would prefer to compact this into a single script, rather than having to alter the display every time the number of digits change.

I played around some with the display options that let you draw a string, but I have been unable to find any way to convert a variable into a string. If there is such a way to do this, I think that I would be able to work with it.

Thanks for your feedback!

Last edited by Hawthourne; 10/14/15 21:10.