1. Converting Route Distance for a Fitness App
Mobile App DeveloperBackground
A developer is building a running tracker app that stores all workout distances in meters, but users input their routes in kilometers.
Problem
Convert a 12.5 km run into meters with 2-decimal precision to store in the database.
How to use
Input '12.5' in the Kilometers field and set the Decimal Precision to '2'.
{
"kilometers": "12.5",
"precision": 2
}Outcome
The tool outputs a JSON result showing 12500 meters.