Stulish Active Member Licensed User Longtime User Apr 30, 2013 #1 Is there a function that sets the format of a number to 3 digits for example: The value held is 0.2345, i want it to display 0.23 The value changes to 12.567, i want it to display 12.5 The value changes again to 123.4, i want it to display 123 As you can see the output os always 3 digits (some with a decimal point) Click to expand... The reason i want this is for displaying continually changing data on the screen, but the label size is limited due to space. I can create a function to check and then output depending on the value i just thought i would ask if there were any built in functions to save me the time. Any help is appreciated. Thanks
Is there a function that sets the format of a number to 3 digits for example: The value held is 0.2345, i want it to display 0.23 The value changes to 12.567, i want it to display 12.5 The value changes again to 123.4, i want it to display 123 As you can see the output os always 3 digits (some with a decimal point) Click to expand... The reason i want this is for displaying continually changing data on the screen, but the label size is limited due to space. I can create a function to check and then output depending on the value i just thought i would ask if there were any built in functions to save me the time. Any help is appreciated. Thanks
thedesolatesoul Expert Licensed User Longtime User Apr 30, 2013 #2 While not exactly what you want, but this is the closest function: Basic4android Search: numberformat2 Upvote 0
While not exactly what you want, but this is the closest function: Basic4android Search: numberformat2