How to show two digits only in a label text ?

I am developing a simple app where I substract two values. I need to show answers in 01 , 02 format in a label text . But it is showing like 1, 2 .
How to solve this ?

Use length of the text and join block

If length of the text =1 but not 0
Then join the text with 0
Else use the same text


this is not the answer, understand the question correctly

1 Like

Here is what you need to do to add 0 infront of single digits,
blocks 2

1 Like


I think this block can help you… In math category.


A general solution is


1 Like