Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. cell.setCellValue(listOfResults.get(iterationNumber));
  2.  
  3. 0
  4. 1
  5. 1,23
  6. 213,23899
  7.  
  8. CellStyle style = wb.createCellStyle();
  9. style.setDataFormat(HSSFDataFormat.getBuiltinFormat("0,00"));
  10. cell.setCellStyle(style);
  11. cell.setCellValue(Float.parseFloat(listOfResults.get(iteration)));
  12. //after this I have a negative output with the following Exception
  13. java.lang.NumberFormatException: For input string: "2,26776"
  14.  
  15. HSSFDataFormat.getBuiltinFormat("0,00")
  16.  
  17. cell.setCellValue(Float.parseFloat(listOfResults.get(iteration)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement