Help distance Km Miles?

Hello I’m creating a wf Mp-DZ 2D but I have difficulty with the KM and Miles code I’m trying and this.

$#WM#=F?((round((#ZSC#*0.0476)))/100) :((round((#ZSC#0.00762)))/10)$||$#ZSC#<=10000?(168+(#ZSC#/1001.1)):70$

km ok

Miles ?

Hi @Discesazero
You could try inserting this in Text Field
((round((#ZSC#*0.0476)))/100)

Or use this one in the text field to convert either in miles either in km depending on the user settings:

$#UNITSYS#=IMPERIAL?(floor(#ZSC# * 0.621371 * 0.65/10)/100) Miles:(floor(#ZSC# * 0.65/10)/100) km$
Cheers

1 Like

thanks, I tried but in miles it doesn’t work :frowning:
the circle does not move and remains asx as shown in the image

Hi @Discesazero
Sorry, I misunderstood. The formula ((round((#ZSC#*0.0476)))/100) is to convert steps in miles with a numerical value, not to advance the circle in a progress bar.
Sorry, but i have not the solution you are asking for

Figured, thank you for your availability. now I reversed the sequence so the circle remains there and does not end up at the bottom of the right.

1 Like

KM

Miles

I have not solved but for now the circle does not end up at the bottom of DX

Super thank you very much for sharing that formula works very well :wink:

1 Like