It is part of a timer that I want it to look like this:
00:00:01
00:00:02
and so…
Right now it writes the corresponding int for each hour, minute and seconds, and it looks like this:
0:0:9
0:0:10
I created this condition to check wether the incoming int, if it’s less than 10 seconds, I want it to append a 0 before it. Otherwise, I don’t want it to append anything. But I can’t achieve this in blueprint…
so if you have a float of 9 representing 9 seconds, multiply this float by .01 giving you .09, and convert it to a string, and use the find substring node to just grab the 09 out of the .09. then you can append this to your desired time string which repeats this process for minutes, hours, etc.
It works partially, because when I multiply 0 * 0,01, the result is 0,0, so I can’t substract the second decimal. I used GetSubstring (as an alternative but the same happens). When the multiply number has only one decimal, it doesn’t work. Is there any way to force the float to have at least 2 decimals in order to work?