You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Marcos Truchado (JIRA)" <ji...@apache.org> on 2014/10/30 11:29:34 UTC
[jira] [Commented] (LANG-674) NumberUtils and decimal point
character
[ https://issues.apache.org/jira/browse/LANG-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189911#comment-14189911 ]
Marcos Truchado commented on LANG-674:
--------------------------------------
Hi
I was hit yesterday by this issue. As today the docummentation is:
--
public static boolean isNumber(String str)
Checks whether the String a valid Java number.
Valid numbers include hexadecimal marked with the 0x qualifier, scientific notation and numbers marked with a type qualifier (e.g. 123L).
--
It might be useful to add a hint warning about the use of locales and this class do not play well together. A NumberUtils that supports locale would be an excellent feature, play with parsing/unparsing requires ugly code taking care of checked exceptions and so on.
> NumberUtils and decimal point character
> ---------------------------------------
>
> Key: LANG-674
> URL: https://issues.apache.org/jira/browse/LANG-674
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.math.*
> Reporter: Henri Yandell
> Fix For: Patch Needed
>
>
> Stevo Slavić reports on commons-user:
> Is there any valid reason why '.' is hardcoded as decimal point
> character in lang.math.NumberUtils, commons-lang (2.6) ? Shouldn't
> this be locale dependent?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)