How to limit Globalization.convertToLocalTemp(Q, False)
I have limited width for label on my panel. I wish the temp to be returned with 1 decimal accuracy.
When OM converts a value from one temp type to another (in this case, supplying F and returning C - my regional value), the calculation can return more than 1 decimal. I would try something like FormatNumber() but the string value from the convertToLocalTemp contains text other than the numbers.
In my particular instance, the returned value is something like "24.833DC" (sorry, don't know how to provide the degrees symbol here, so used 'D'). I only have room for "24.8DC".
B.Text = Globalization.convertToLocalTemp(Q, False)
I currently have no more space. The labels above the small buttons (D1, D2, etc) are user definable so there is really no more character space there. The blank space below the small buttons and progress bars would have additional buttons and progress bars depending on the capabilities of the attached Arduino. I could shrink the progress bars.
I'm sure mostly due to my lack of VB.NET experience but can anyone offer up a solution?