String direction = temp.toString().substring(4);
//Decimal Degrees = Degrees + minutes/60
BigDecimal convertedCoordinates = degrees.add(minutes.divide(sixty, new MathContext(5)));
//negate coordinate if it is -> South
if (direction.toLowerCase().equals("s")) {
convertedCoordinates.negate();
}
mainTable.setValueAt(convertedCoordinates, i, selectedColIndex);
} else if (temp != null && temp.toString().length() == 7) {//latitude with seconds
//Uses BigDecimal in order to enabe control of precision after the .