hey guys so in my project i need to be able to display the number 0000 and be able to use the add function to add 1 to it to make 0001 ive been using integers for everything else but when i got to this part where i need specifically leading 0’s im a bit stuck, i tried using a string but it doesnt seem to work for me
as you can see my int is named year and it will not output the other 3 0’s that i need
Hey @Leafies121,
How did you try your implementation of the FString? I’d try working with the numbers as integers, but when you go to display them, concatenate the remaining digits (maybe a for loop?) onto the beginning of the value.
I hope this can help!
-Zen
yeah that is implied. I am showing you the node you use to concatenate the 000’s in the situation you need it for.
When to add the 000’s is up to you, but that’s just some simple check and if the check fails, then you add your 0’s.
So to summarize, the answer to your original question is “the variable which supports a number beginning with 0’s is a string”, but to build that string from some number you have to concatenate based on some ruleset you design.