I'm using NumberFormat.getPercentFormat() to create a number format
for formatting numbers and for parsing strings back into numbers. This
works fine for formatting (0.03 gets formatted as 3%), but when I
parse the string I'm out by a factor of 100 (3% gets parsed as 3.0).

This looks like a bug in the number format to me (a quick scan of the
source shows that multiplier is being set to 100 for percentage
formats, this is being used by the format method, but not by the parse
method). I've searched this forum (and it's archive) and the issue
tracker, but can't find any reference to this problem.

Has anyone else had similar problems? If so is there a nice workaround
(I'm currently using a decorator on the NumberFormat, but it's not
particularly clean)?

Thanks,

Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to