LinuxSuRen / LinuxSuRen/autotest.datasource.excel
A error of Read the number in the excel
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
When reading the figures in excel, the data comes with decimal points.
E.g: Excel are set in the text, such as "1" into "1.0"
Suggest:
HSSFCell userid = hssfRow.getCell (0);
Plus this sentence conversion: userid.setCellType (userid.CELL_TYPE_STRING);
Print out the test has no decimal point: System.out.println (getValue (userid));
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the HSSFCell userid example and the getValue(userid) call described in the issue, then reproduce reading a text-formatted Excel value such as "1". Confirm the result currently includes a decimal point and that the requested behavior is a string value without it; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100