private static String myDblToString(double value)
	{
		int approx = (int) value;
		double remaining = value - approx;
		if (remaining < 0.0001) return Integer.toString(approx);
		if (remaining > 0.9999) return Integer.toString(approx + 1);
		return Double.toString(value);
	}