Since the topic has come up, is there an easy way to specify the maximum digits after the decimal? For example, if I set it to 2 decimal places, I would see the following:
value = display
1 = 1
1.5 = 1.5
1.52 = 1.52
1.5555 = 1.56
1.50 = 1.5
1.00 = 1
I wrote a little routine that strips the trailing zeros (and decimal point, if applicable) from the end of the input value, which was simple enough, but I was wondering if there was some built-in way to do this.