Friday, February 28, 2014

Re: Best alternative for Character.getNumericValue(ch)?

Integer.parseInt("" + ch, 36) should do it, otherwise, simply "('0' <= ch && ch<= '9') ? ch - '0' : ch - 'A' + 10"

On Thursday, February 27, 2014 11:35:31 AM UTC+1, Ed wrote:
I need to use the method Character.getNumericValue(character) for Iban account nr validation (the modulo calculation part: LINKE)

However this method isn't supported by GWT. What is my (best) alterantive?

Details:
The method for modulo calculation can also be find in the Apache commons: LINKE, method calculateModulus()

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment