[ 
https://issues.apache.org/jira/browse/PIVOT-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noel Grandin resolved PIVOT-335.
--------------------------------

    Resolution: Fixed
      Assignee: Noel Grandin

> Errors in FloatValidator
> ------------------------
>
>                 Key: PIVOT-335
>                 URL: https://issues.apache.org/jira/browse/PIVOT-335
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-text
>    Affects Versions: 1.3
>            Reporter: Todd Volkert
>            Assignee: Noel Grandin
>             Fix For: 1.4
>
>
> FloatValidator is reporting the following values (among many others) as 
> invalid, though they are clearly valid float values:
> 0.52986217
> 0.11
> I tried playing with changing FloatValidator to use the following code, but 
> to no avail...
> >        BigDecimal bigFloat = new BigDecimal(value, 
> > MathContext.DECIMAL32).stripTrailingZeros();
> >        BigDecimal bigDouble = new BigDecimal(value, 
> > MathContext.DECIMAL64).stripTrailingZeros();
> >        return (bigFloat.compareTo(bigDouble) == 0);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to