[ https://issues.apache.org/jira/browse/PIVOT-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13576481#comment-13576481 ]
Sandro Martini commented on PIVOT-892: -------------------------------------- Hi Roger, now it's much better :-) ... but still it need some fix, sorry ... some info, with my other tests with TestInputValidatorTest: double validator: up to this 9e3000000000000000000 gives valid, but isn't too much for doubles ? (and the same even for 9e-3000000000000000000 ) I still have problems with float numbers, because for example we put the initial value for the float value to "0.5" but in my Locale (Italian) the right string value is "0,5" ... so at least we should use the Locale to write/read those string values (and write in comments at right) ... for me it would be simpler to do (because I can immediately see it), ok ?. Probably a good addition to that test application could be to write in System.out the input value, and the calculated value, just to be sure and check by hand. I hope to find some time to help you on this (if you want) ... tell me (I can't commit but I can attach here a patch). > DoubleValidator and FloatValidator do not allow exponents to be entered > ----------------------------------------------------------------------- > > Key: PIVOT-892 > URL: https://issues.apache.org/jira/browse/PIVOT-892 > Project: Pivot > Issue Type: Bug > Components: wtk > Affects Versions: 2.0.2 > Environment: All > Reporter: Roger Whitcomb > Assignee: Roger Whitcomb > Priority: Minor > Labels: validation > Fix For: 2.0.3 > > Attachments: 892.patch, num.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > The DoubleValidator and FloatValidator classes rely on a default NumberFormat > instance to do parsing, however, a DecimalFormat is necessary in order to > recognize floating values entered with exponents. > As a result, using one of these validators currently will fail to validate a > valid floating-point number such as "3.0e20". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira