private Pair<CharSequence, Boolean> padDigits(final String unpaddedDigits, final int targetSize) {
        if (targetSize <= 0 || targetSize == unpaddedDigits.length()) {
            return new Pair<>(unpaddedDigits, false);
        }
        if (targetSize < unpaddedDigits.length()) {
            return new Pair<>(TextUtils.setSpan(unpaddedDigits, Formula.createWarningSpan(), targetSize, -1, 0), true);
        }
        final String pad = TextUtils.getPad("0000000000", targetSize - unpaddedDigits.length());
        return new Pair<>(TextUtils.setSpan(pad + unpaddedDigits, Formula.createWarningSpan(), 0, pad.length(), 0), true);
    }
Evaluates both the double value and the CharSequence representation of this DegreeFormula
to allow for a more performant calculation.

@param varMap varmap to calculate values for
@return pair with calculated double value as first param (might be null) and text representation as secod (never null)
main/src/main/java/cgeo/geocaching/utils/formulas/DegreeFormula.java