Round off instead of round down for track recording distance
Gathering feedback
If I have a track distance of 900m with a track recording profile of {dist} the file name will be 0, as in zero metres. This is because the distance is either rounded down or truncated to an integer. Not much of an issue for longer distances but for walking I think it is more useful to round off the track recording distance for the file name.
You're generally right, but rounding up can be just as nonsensical. I often record very short tracks (50–300 m) for OSM corrections or as markers for myself, and if these are always displayed as 1 km, it would be silly.
Ideally, at least one decimal place should be displayed for distances below 1 km. Otherwise, it's no big deal, as you can edit the track title.
You're generally right, but rounding up can be just as nonsensical. I often record very short tracks (50–300 m) for OSM corrections or as markers for myself, and if these are always displayed as 1 km, it would be silly.
Ideally, at least one decimal place should be displayed for distances below 1 km. Otherwise, it's no big deal, as you can edit the track title.
I think you are discussing rounding "up". I agree your example would be silly.
rounding off:
0..0.4 is rounded down to 0
0.5..0.9 is rounded up to 1
or "roughly" anyway
I think you are discussing rounding "up". I agree your example would be silly.
rounding off:
0..0.4 is rounded down to 0
0.5..0.9 is rounded up to 1
or "roughly" anyway
Hi guys,
not so easy to solve. My internal formatter respects user-defined units (km, miles) and current solution simply ignore (not round down!) values below 1 km/mile. Values below 1 km/miles should be otherwise formatted as 900m etc.
To be true, I would rather let it me. Have you recorded 1 km? No 😊
Hi guys,
not so easy to solve. My internal formatter respects user-defined units (km, miles) and current solution simply ignore (not round down!) values below 1 km/mile. Values below 1 km/miles should be otherwise formatted as 900m etc.
To be true, I would rather let it me. Have you recorded 1 km? No 😊
Am happy to let it be. I had a track of 950m & seemed silly the filename was 0 (km). I could modify the filename manually for the small # times it happens. Was just wondering.
Am happy to let it be. I had a track of 950m & seemed silly the filename was 0 (km). I could modify the filename manually for the small # times it happens. Was just wondering.
Replies have been locked on this page!