The excel column contains numbers from 1 to 0.0001. When the operator manually summarizes a column from about 10-30 lines, the number is 15.028
I do automation. I get data from the DB Oracle. Information comes in the form of strings. I convert strings to Double and summarize. The sum of the same lines gives me 13.9
Can Double round off values because of what information is lost and how to deal with it?
for (String[] rowx : СписокмассивовстрокИзОракл) { String key = "комбинация данных по логике автоматизации"; try { if (mapMass.containsKey(key)) { try { double src = 0.0; try { src = Double.valueOf(rowx[timeFakt]); //косяк, данные хранящиеся в ячейке timeFakt могут быть типа 0,0028 или 0,0000034. и они округляются. } catch (Exception e) { e.printStackTrace(); } total = Double.valueOf(mapMassTwo.get(key)) + src; String tf = String.valueOf(total); mapMassTwo.put(key, tf); total = 0.0; } catch (Exception e) { e.printStackTrace(); } } else { String tf = rowx[timeFakt]; mapMass.put(key, tf ); } } catch (Exception e) { e.printStackTrace(); } }