[ 
https://issues.apache.org/jira/browse/METAMODEL-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939749#comment-14939749
 ] 

Davide Consonni commented on METAMODEL-190:
-------------------------------------------

Pull request submitted.

In order to minimize the change needed instead of moving to Double.toString 
i've just used the setMaximumFractionDigits function in the formatter 
constructor to set how many digits are allowed (Integer.MAX_VALUE)

For example if in the excel is written 8 Double.toString return "8.0" instead 
of "8", so to avoid mess up things i choose the other solution.

> Excel number formatting
> -----------------------
>
>                 Key: METAMODEL-190
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-190
>             Project: Apache MetaModel
>          Issue Type: Wish
>    Affects Versions: 4.4.0
>         Environment: excel
>            Reporter: Davide Consonni
>
> Extracting numeric value  from an excel file trim decimal precision to 2.
> Example: real value -> 6.765  obtained value -> 6.76
> The problem seems to depend on the number formatting used at line 201 in 
> org.apache.metamodel.excel.ExcelUtils
> There is a way to obtain the actual value in those cases ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to