How can I format a number to always display six digits? For instance, the number 58 should appear as 000058, and 1358 should appear as 001358.
I’ve previously used the plugin add padding to numbers (left zeros) to this end.
You just pass the number and indicate the number of digits. Then you access the value via plugin’s element custom state.
There might be a more efficient way of doing so, but I didn’t find an alternative by then.
1 Like
Create a text, consisting of five zeros, and append the number to it. Then just truncate it from the end to 6 characters.
You’ll need to add some additional logic to handle cases if/when the number exceeds 6 digits.
2 Likes