I am making a map with a "EPSG:25832 - ETRS89 / UTM zone 32 N" grid. I've added 1,000 meter grid lines and need the coordinates on the side of the map to appear in two digits.
The challenge is that the vertical coordinates look like this: 6160000 (seven digits) and the horizontal like this: 678000 (six digits). To get my grid right I need to get rid of the trailing zeros. I have figured out how to do this using substr() or left().
However, since the vertical coordinates have an extra digit in front I can't get my custom format to work. I need to strip the first digit off the horizontal grid and the two first digits off the vertical grid.
Using the picture below as an example I would need the end result to be [64,63] horizontal and [78,79,80,81] vertical.