Leading "0" for

Wondering if there is something to have a leading “0” in the miles/KM expressions. TIA!

1 Like

Show us your formula . Or do you just mean the Native Tag . Something like 03.56 Km and 2.21 Mi .

.

Sadly we can not make complex conditionals in the Textbox of a text layer . Shame but we can get round it by showing the relevant layer with its opacity .

I will make a test because I can only show you practicaly . I could not explain it in a Thousand years .

.

Here is an inspectable . I published it for Fun . The Km formula is a bit complex . I might dig out a KISS one if anyone is intrested . I can do nothing about the trailing Zeros . That is something I have no tried to fix before . One of the Masters may pick it up and sort it .

.

.

I think I got now. Thank you kindly!

Unfortunately the pad function is no longer an option for WOS6.

So, if you want a number to have leading zeros, you’ll have to split it up into single digits.

Say you want the steps to have max 6 digits, so 1000 steps would be “001000”, then that would mean:

((floor((#ZSC#/100000)))%10)
((floor((#ZSC#/10000)))%10)
((floor((#ZSC#/1000)))%10)
((floor((#ZSC#/100)))%10)
((floor((#ZSC#/10)))%10)
(floor((#ZSC#%10)))

You can put the above into a single text field and on 1 line.

1 Like

I’ve been using that for modern style (hours over minutes) digital watch faces. That way I can have the steps in a vertical row along with the heart rate to match the time.

MAG 3186

1 Like

This if the face I was working on:

1 Like

looks great!

1 Like

Thanks Tom!