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

image

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

Hi!

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

Screenshot_2023-06-29-10-00-04-753_org.mozilla.firefox-edit

A general solution is

Taifun

1 Like