POI Appending .0 while reading numeric data from excel

前端 未结 2 917
青春惊慌失措
青春惊慌失措 2021-01-12 20:07

I am using POI HSSF to read excel data and I am using JUnit to check the data against database proc RefCursor.

The Junit test fails as the numeric data from the Refc

2条回答
  •  太阳男子
    2021-01-12 20:43

    Hi my solution was just to put the symbol:

    '
    

    in front of every number. Then the number is processed as text.

    After you do that you would see little green triangle and warning:

    For me this is not a problem, because it works.

提交回复
热议问题