Forum Academy Marketplace Showcase Pricing Features

How to format Distance

I’m setting up a Distance from feature in my app and it shows like this 5.380000101000. I just need a single digit with miles as a unit of measurement. When I used dynamic data to calculate the distance, I don’t see the usual :rounded, :average options I normally see when dealing with numerical values. Any guidance on what I’m doing wrong with the formatting?

You can add the :formatted parameter, see the image below;

Thanks @DaveA, the Editor was just being a bit finicky. All is well now. The swift response is greatly appreciated.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.