Groups
Groups
Sign in
Groups
Groups
gwt-validation
Conversations
About
Send feedback
Help
Digits constraint won't work with fractions
14 views
Skip to first unread message
Ignacio Serrano
unread,
Feb 7, 2013, 12:11:16 PM
2/7/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-val...@googlegroups.com
It doesn't matter how many fractional digits you specify because what
DigitsNumberValidator
does with your number is:
String valueString = Double.valueOf(value.doubleValue()).toString();
So numbers like 4.59 will automatically get infinite decimals even if the field / property being validated is BigDecimal.
Doesn't make much sense to use a digit validator that adds extra digits to make validations, don't you think?
Reply all
Reply to author
Forward
0 new messages