private String formatLcdValue(final double VALUE, final int DECIMALS) {
        decBuffer.setLength(0);
        decBuffer.append("0");

        if (DECIMALS > 0) {
            decBuffer.append(".");
        }

        for (int i = 0; i < DECIMALS; i++) {
            decBuffer.append("0");
        }

        if (SCIFI_FORMAT) {
            decBuffer.append("E0");
        }
        decBuffer.trimToSize();

        DEC_FORMAT.applyPattern(decBuffer.toString());

        //decBuffer.setLength(0);
        //decBuffer.append("%.").append(DECIMALS).append("f");
        //return String.format(Locale.US, decBuffer.toString(), VALUE);
        return DEC_FORMAT.format(VALUE);
    }