-1

i am reading data from an excel sheet which has decimals.

i want to obtain the result without decimals.

I'm using cell.getNumericCellValue () which gives decimal - is there a function which removes decimals.

JoseK
  • 31,141
  • 14
  • 104
  • 131
sweety
  • 73
  • 2
  • 5
  • 15
  • Where are the connection to Javascript, Java, Apache and Struts? I think this an issue for Tag excel and if exists for HSSF. – Reporter Apr 26 '12 at 11:54

1 Answers1

4

how about just casting the value to int?

(int)cell.getNumericCellValue()
Kshitij
  • 8,474
  • 2
  • 26
  • 34