code: private void setFormat() {
  			if(getMinorTickSpacing() == (int) getMinorTickSpacing()){
  				format = "%.0f";
  			} else {
  //				BigDecimal dec = new BigDecimal(getMinorTickSpacing());
  //				String s = String.valueOf(getMinorTickSpacing());
  //				int precision = s.substring(s.lastIndexOf('.')+1).length();
  //				format = FormatUtils.getFloatFormat(precision);
  				format = FormatUtils.getFloatFormat(MathUtils.getRHD(minorTickSpacing));
  			}
  		}
docs: Sets the format used for generating String representations of tick values.<br>
  For non-integer tick values this method uses a format with the same precision as a base value,
  which is set to the first tick in non zero-based operation mode and to minor tick spacing otherwise.