But that would only help for the unit (km/mi etc.) and not the calculation, right?
Nope, it does the calculations for you magically. Just give it the distance in meters and you're sorted :)
Sounds nice and works. But I have problems with that.
When distance is in the second line (small font) I want to display 1,252km 3 digits + unit
When distance is in the first line (large font) I want to display 1,25 2 digits, no unit.
AFAIK this is not possible with locale?
Thanks
@Purple-Tentacle started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Nope, it does the calculations for you magically. Just give it the distance in meters and you're sorted :)