code: private static String intPart(String str) {
          return str.indexOf(JAVA_DECIMAL_POINT) > 0 ? str.substring(0,
                  str.indexOf(JAVA_DECIMAL_POINT)) : str;
      }
docs: Removes the fractional part from a numeric's string representation.
  
  @param str the numeric string decimal representation
  @return the decimal representation without the factional part