public static String fixDecimalExponent(String dString){
  int ePos=dString.indexOf('E');
  if (ePos == -1) {
    ePos=dString.indexOf('e');
  }
  if (ePos != -1) {
    if (dString.length() > (ePos + 1)) {
      char maybeMinusChar=dString.charAt(ePos + 1);
      if (maybeMinusChar != '-' && maybeMinusChar != '+') {
        StringBuilder strBuilder=new StringBuilder(dString.length() + 1);
        strBuilder.append(dString.substring(0,ePos + 1));
        strBuilder.append('+');
        strBuilder.append(dString.substring(ePos + 1,dString.length()));
        dString=strBuilder.toString();
      }
    }
  }
  return dString;
}

public static String fixDecimalExponent ( String dString ) { int ePos = dString . indexOf ( 'E' ) ; if ( ePos == - 1 ) { ePos = dString . indexOf ( 'e' ) ; } if ( ePos != - 1 ) { if ( dString . length ( ) > ( ePos + 1 ) ) { char maybeMinusChar = dString . charAt ( ePos + 1 ) ; if ( maybeMinusChar != '-' && maybeMinusChar != '+' ) { StringBuilder strBuilder = new StringBuilder ( dString . length ( ) + 1 ) ; strBuilder . append ( dString . substring ( 0 , ePos + 1 ) ) ; strBuilder . append ( '+' ) ; strBuilder . append ( dString . substring ( ePos + 1 , dString . length ( ) ) ) ; dString = strBuilder . toString ( ) ; } } } return dString ; }
adds ' + ' to decimal numbers that are positive ( mysql doesn ' t understand them otherwise
