2 decimal places

Hey guys,

Is it possible to round down a steps figure to 2 decimal places to show steps in ‘K’? For example, 5634 steps would be represented as 5.63

At the moment I’m using:
((round(#ZSC#*10))/10000)

But this doesn’t seem to work.

Sorry to ask, I believe it’s using the ‘round’ function, but I’m not sure how to apply it so I get the desired result.

Thanks for any help / support.

Cheers

Rich

2 Likes

Rich, I’ll mess around with this a little bit later, I’m curious about this too. I’m about to run out for a while now so maybe you’ll already have your answer by the time I dig in. But I’m thinking you’re barking up the right tree though. For example this is what I use for KM and it prints decimal

((round((#ZSC#*0.00762)))/10)

Thanks Kevin, let me know if you discover the answer. Will post a solution if I work it out or find one.

Cheers

Rich, @Batwolf just shared a solution in the Slack channel, I tagged you there so you should be able to easily find it in the steam.

This seems to do the trick:

\$#ZSC#>1000?((round(#ZSC#/10)*10)/1000)K:#ZSC#\$

2 Likes

Quite a few of these look like they may work. I thought I would add mine anyway …

((round(#ZSC#/10)/100)

1 Like

Hi Kevin - saw the note on slack, thanks!

Thanks Batwolf!

Hi Mike, wow, so simple…I’m sure I tried this but was still getting 3 decimal places… !?) Thank you.

Ps add final bracket if using Mike’s solution; use ((round(#ZSC#/10)/100))

Cheers Mike

1 Like

Sorry miscounted the brackets

1 Like

I think mine seems longer because I only start doing the decimals once you have reached 1000 Nice solution as always @mikeoday

2 Likes

Yes, yours is cool in that way.

9
99
999
then
1.0

Very nice.

1 Like