private static StringBuilder appendDouble(StringBuilder sb, double d) {
        long x10 = Math.round(d * 10);
        sb.append(x10 / 10).append('.').append(x10 % 10);
        return sb;
    }
Returns this with all numbers set to 0
config-provisioning/src/main/java/com/yahoo/config/provision/NodeResources.java