forked from upstream-mirrors/OpenTracks
128b95cd83
We extracted integral parts before rounding, but String.format does rounding which caused occasional issues. To alleviate, we need to round before passing to String.format. All this rounding logic has now been moved into appendDecimalUnit, and tests have been added to check that rounding works correctly. Fixes: #1285