}
if (nv.getDecimalDigitsCount() > 0) {
/*
* Don't count the decimal point: length() - 1
*/
if (Double.toString(nv.doubleValue()).length() - 1 > precision) {
return "too long";
}
} else {
if (Long.toString(nv.longValue()).length() > precision) {
return "too long";