• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help- how POI convert number cell to text?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I encouter one very interesting problem in our probject. Out system will read xls file and parse with POI then insert into system. One column in the xls has been set as "Text". But the values in some cells still be stored as *NUMBER*. The poi returns HSSFCell with numberic type when parsing. Then the value inserted into system may be the value with science nonation.

For example, the value in xls is 0.0000000005.
The POI will return 5E-10 and insert into system.

It seems one MS-Excel issue. Some cells right text format, but some with number format

This is very urgent for our project, please advise. Thanks again.
 
reply
    Bookmark Topic Watch Topic
  • New Topic