[
https://issues.apache.org/jira/browse/METAMODEL-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14935196#comment-14935196
]
Davide Consonni commented on METAMODEL-190:
-------------------------------------------
Hi, thanks for the replay.
In my (incomplete) view Double.toString(...) should work fine, another option
could be to expose the NumberFormat to tune the maximumFractionDigits (and
maybe others) parameter(s) if it is needed.
Actually i don't even know why i get 2 in the maximumFractionDigits value while
in the constructor it is set to 3 as default but probably i haven't fully
understand how it works.
> 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)