I’m using texttemplate to format numbers on a bar graph. The numbers look like 0.5932 or 0.9492. I want to limit to 3 decimal places, but I also want to remove the leading 0’s, so on the graph, i want to show .593 and .949.
I’m currently using:
This reduces the printing to 3 decimal places, but does not remove the leading 0 before the decimal.
Is there a way to do this?